diff --git a/account_management/deal_account.py b/account_management/deal_account.py index 5951f7f..2b2a865 100644 --- a/account_management/deal_account.py +++ b/account_management/deal_account.py @@ -2,7 +2,7 @@ import os from typing import Optional, Dict, Any, List from public_function.asyn_mysql import AsyncMySQL -from device_management.deal_all_task import DealAllTask +from public_function.deal_all_task import DealAllTask class DealAccount: diff --git a/model/model.py b/model/model.py index 97b44a3..eb833b9 100644 --- a/model/model.py +++ b/model/model.py @@ -48,3 +48,14 @@ class CrawlerItem(BaseModel): class ResetTask(BaseModel): task_id: str = Field(..., description="任务ID") + + +class AlterStatus(BaseModel): + pad_code: str = Field(..., description="设备编号") + + +class BackupItem(BaseModel): + pad_code: str = Field(..., description="设备编号") + account_id: str = Field(..., description="账号ID") + script_name: str = Field(..., description="脚本名称") + is_restore: bool = Field(..., description="是否还原")