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
@@ -826,6 +826,7 @@ export interface WeiboWorkbenchBatchImportItem {
identifier: string;
status:
| 'added'
| 'forced_added'
| 'already_added'
| 'not_found'
| 'ambiguous'
@@ -836,11 +837,14 @@ export interface WeiboWorkbenchBatchImportItem {
account_id: number | null;
uid: string;
nickname: string;
occupied_by_user_id: number | null;
occupied_by_username: string;
}
export interface WeiboWorkbenchBatchImportResult {
requested: number;
added: number;
forced_added: number;
already_added: number;
failed: number;
account_ids: number[];
+2 -2
View File
@@ -124,10 +124,10 @@ export const weiboApi = {
'/weibo/workbench/accounts',
{ account_ids: accountIds },
),
batchImportWorkbenchAccounts: (text: string) =>
batchImportWorkbenchAccounts: (text: string, forceAddOccupied = false) =>
api.post<WeiboWorkbenchBatchImportResult, WeiboWorkbenchBatchImportResult>(
'/weibo/workbench/accounts/batch-import',
{ text },
{ text, force_add_occupied: forceAddOccupied },
),
transferWorkbenchToCollab: (accountId: number) =>
api.post<