feat(douyu): include binding roles in batch verification

Expose CK and binding-role validity from batch verification and summarize invalid CK, missing roles, and request failures in the collaboration workbench.
This commit is contained in:
yml
2026-11-20 00:22:48 +08:00
parent 85837944d0
commit e9937419cb
4 changed files with 119 additions and 8 deletions
+24 -2
View File
@@ -387,8 +387,30 @@ export const douyuCollabApi = {
),
batchVerify: (ids: number[]) =>
api.post<
{ results: Array<{ id: number; success: boolean; ck_status?: string; role?: string; message?: string }>; success: boolean },
{ results: Array<{ id: number; success: boolean; ck_status?: string; role?: string; message?: string }>; success: boolean }
{
results: Array<{
id: number;
success: boolean;
ok?: boolean;
ck_status?: string;
role?: string;
role_ok?: boolean;
message?: string;
}>;
success: boolean;
},
{
results: Array<{
id: number;
success: boolean;
ok?: boolean;
ck_status?: string;
role?: string;
role_ok?: boolean;
message?: string;
}>;
success: boolean;
}
>('/douyu/external-orders/verify/batch', ids),
queryActivity: (id: number) => api.post<DouyuCollabQueryResult, DouyuCollabQueryResult>(
`/douyu/external-orders/${id}/activity/query`,