From c7d1c774806e8355100f743a1a2716b042ce3ca4 Mon Sep 17 00:00:00 2001 From: liujianjiang Date: Thu, 8 Jan 2026 14:11:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- account_management/deal_account.py | 2 +- model/model.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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="是否还原")