feat(weibo): 增加外部 CK 账号 CRUD 与生命周期

This commit is contained in:
yml2213
2026-11-08 11:07:23 +08:00
parent dd3508d614
commit a0afa430ec
11 changed files with 611 additions and 10 deletions
+13
View File
@@ -480,7 +480,11 @@ class WeiboAccountOut(BaseModel):
uid: str
nickname: str = ""
tag: str = ""
remark: str = ""
activity: str = ""
is_enabled: bool = True
disabled_at: datetime | None = None
disabled_reason: str = ""
ck_check_status: str = ""
ck_check_message: str = ""
ck_checked_at: datetime | None = None
@@ -496,6 +500,15 @@ class WeiboAccountOut(BaseModel):
model_config = ConfigDict(from_attributes=True)
class WeiboAccountUpdate(BaseModel):
tag: str | None = Field(None, max_length=64)
remark: str | None = Field(None, max_length=256)
class WeiboAccountDisableRequest(BaseModel):
reason: str = Field("", max_length=256)
class WeiboImportResult(BaseModel):
success: bool
message: str