feat(weibo): 增加强制分配权限与账号详情

This commit is contained in:
yml
2026-11-13 13:36:41 +08:00
parent 9cf4f65a3d
commit 4e47b5b299
10 changed files with 995 additions and 34 deletions
+16
View File
@@ -9,6 +9,7 @@ import type {
WeiboBindQrResult,
WeiboExchangeRecordsResult,
WeiboExchangeResult,
WeiboForceAssignResult,
WeiboMallListResult,
WeiboPaymentStatusResult,
WeiboPointHistoryResult,
@@ -91,6 +92,21 @@ export const weiboApi = {
account_ids: accountIds,
assigned_to: assignedTo,
}),
forceAssign: (
assignedTo: number,
expectedCount: number,
scope: { accountIds: number[] } | { tag: string },
) =>
api.post<WeiboForceAssignResult, WeiboForceAssignResult>(
'/weibo/assignments/force',
{
assigned_to: assignedTo,
expected_count: expectedCount,
...('accountIds' in scope
? { account_ids: scope.accountIds }
: { tag: scope.tag }),
},
),
assignmentsSummary: () =>
api.get<AssignmentsSummary, AssignmentsSummary>('/weibo/assignments/summary'),
accountTags: () =>