feat: redesign report batch workflow

This commit is contained in:
hectorzhao
2026-09-03 11:04:32 +08:00
parent a50aafb1ec
commit dc201bf92e
15 changed files with 582 additions and 150 deletions
+3
View File
@@ -223,6 +223,9 @@ export const adminChannelsReportsApi = {
query: { keyword?: string; startAt?: string; endAt?: string; page?: number; pageSize?: number } = {},
) => request<PagedResult<ReportMaterialBatch>>(withQuery('/admin/report-materials/batches', query)),
getReportMaterialBatch: (id: string) => request<ReportMaterialBatch>(`/admin/report-materials/batches/${id}`),
downloadReportMaterialBatch: (id: string) => requestBlob(`/admin/report-materials/batches/${id}/download`),
downloadReportMaterialBatchFile: (id: string, fileId: string) =>
requestBlob(`/admin/report-materials/batches/${id}/files/${fileId}/download`),
listReportMaterialBatchTasks: (
id: string,
query: {
+2
View File
@@ -144,7 +144,9 @@ export type ReportMaterialBatch = {
channelCount: number;
fileCount: number;
reportTotal: number;
reportingCount: number;
successCount: number;
failedCount: number;
successRate: number;
createdAt: string;
completedAt?: string | null;