init
This commit is contained in:
		
							
								
								
									
										0
									
								
								core/target/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								core/target/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										25
									
								
								core/target/targetBase.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								core/target/targetBase.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| """ | ||||
| ******************************************** | ||||
| * @Date: 2024 09 27 | ||||
| * @Description: TargetBase存储后端的抽象类 | ||||
| ******************************************** | ||||
| """ | ||||
|  | ||||
| from abc import ABC, abstractmethod | ||||
| from core.objects.back_object import BackObject | ||||
|  | ||||
|  | ||||
| class TargetBase(ABC): | ||||
|     @abstractmethod | ||||
|     def test(self) -> bool: | ||||
|         """ | ||||
|         测试目标连通性 | ||||
|  | ||||
|         :param | ||||
|         :return | ||||
|         """ | ||||
|         pass | ||||
|  | ||||
|     @abstractmethod | ||||
|     def back(self, back_object: BackObject): | ||||
|         pass | ||||
		Reference in New Issue
	
	Block a user