优化客服CK重登流程
This commit is contained in:
@@ -26,6 +26,10 @@ export const cookieApi = {
|
||||
api.post<{ batch_id: string; count: number; skipped: number; success: boolean }, { batch_id: string; count: number; skipped: number; success: boolean }>('/cookies/relogin', { ids }),
|
||||
reloginOperations: (ids: number[]) =>
|
||||
api.post<{ batch_id: string; count: number; skipped: number; success: boolean }, { batch_id: string; count: number; skipped: number; success: boolean }>('/cookies/operations/relogin', { ids }),
|
||||
reloginInvalidOperations: (params?: { search?: string; tag?: string }) =>
|
||||
api.post<{ batch_id: string; count: number; skipped: number; success: boolean }, { batch_id: string; count: number; skipped: number; success: boolean }>('/cookies/operations/relogin-invalid', null, { params }),
|
||||
stopOperationRelogin: (batchId: string) =>
|
||||
api.post<MessageResponse, MessageResponse>(`/cookies/operations/relogin/${batchId}/stop`),
|
||||
loginTasks: (batchId: string) =>
|
||||
api.get<LoginTaskItem[], LoginTaskItem[]>('/login/tasks', { params: { batch_id: batchId } }),
|
||||
delete: (id: number) => api.delete<MessageResponse, MessageResponse>(`/cookies/${id}`),
|
||||
|
||||
@@ -280,6 +280,9 @@ export interface CookieOperationItem {
|
||||
ck_check_status: string;
|
||||
ck_checked_at: string | null;
|
||||
created_at: string | null;
|
||||
relogin_status: '' | 'relogin_pending' | 'relogin_running' | 'relogin_failed';
|
||||
relogin_message: string;
|
||||
relogin_batch_id: string;
|
||||
}
|
||||
|
||||
export interface CookieOperationCheckResult {
|
||||
|
||||
Reference in New Issue
Block a user