feat(weibo): 支持工作台账号转入外部单协作

This commit is contained in:
yml
2026-11-11 20:32:42 +08:00
parent 50bb829101
commit 3f860c3272
8 changed files with 237 additions and 3 deletions
+8
View File
@@ -16,6 +16,7 @@ import type {
WeiboImportResult,
WeiboWorkbenchMutationResult,
WeiboWorkbenchBatchImportResult,
WeiboWorkbenchTransferToCollabResult,
} from './types';
export const weiboApi = {
@@ -128,6 +129,13 @@ export const weiboApi = {
'/weibo/workbench/accounts/batch-import',
{ text },
),
transferWorkbenchToCollab: (accountId: number) =>
api.post<
WeiboWorkbenchTransferToCollabResult,
WeiboWorkbenchTransferToCollabResult
>('/weibo/workbench/accounts/transfer-to-collab', {
account_id: accountId,
}),
removeWorkbenchAccounts: (accountIds: number[]) =>
api.post<WeiboWorkbenchMutationResult, WeiboWorkbenchMutationResult>(
'/weibo/workbench/accounts/remove',