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:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user