feat(weibo): 支持管理员强制转入工作台且不影响原使用人

This commit is contained in:
yml
2026-11-12 12:05:26 +08:00
parent 11b5a4d938
commit 31045e0f2e
11 changed files with 604 additions and 56 deletions
+4
View File
@@ -542,6 +542,7 @@ class WeiboWorkbenchTransferToCollabOut(BaseModel):
class WeiboWorkbenchBatchImportRequest(BaseModel):
text: str = Field(..., min_length=1, max_length=100_000)
force_add_occupied: bool = False
class WeiboWorkbenchBatchImportItem(BaseModel):
@@ -551,11 +552,14 @@ class WeiboWorkbenchBatchImportItem(BaseModel):
account_id: int | None = None
uid: str = ""
nickname: str = ""
occupied_by_user_id: int | None = None
occupied_by_username: str = ""
class WeiboWorkbenchBatchImportOut(BaseModel):
requested: int
added: int
forced_added: int = 0
already_added: int
failed: int
account_ids: list[int] = Field(default_factory=list)