增加斗鱼账号检测功能

This commit is contained in:
yml2213
2026-07-09 23:12:39 +08:00
parent 1f16193690
commit cd2d02c86e
16 changed files with 1206 additions and 53 deletions
+13
View File
@@ -0,0 +1,13 @@
import api from './client';
import type { AccountCheckBatch, AccountCheckBatchRequest, MessageResponse } from './types';
export const accountCheckApi = {
start: (data: AccountCheckBatchRequest) =>
api.post<AccountCheckBatch, AccountCheckBatch>('/account-check/batches', data),
getBatch: (batchId: string) =>
api.get<AccountCheckBatch, AccountCheckBatch>(`/account-check/batches/${batchId}`),
stop: (batchId: string) =>
api.post<MessageResponse, MessageResponse>(`/account-check/batches/${batchId}/stop`),
download: (batchId: string) =>
api.get<Blob, Blob>(`/account-check/batches/${batchId}/download`, { responseType: 'blob' }),
};