feat(weibo): 支持工作台账号转入外部单协作
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user