feat: add batch content report processing

This commit is contained in:
2026-01-16 17:59:18 +08:00
parent 028c462eaa
commit b796636b5d
11 changed files with 599 additions and 8 deletions

View File

@@ -276,5 +276,19 @@ export const ContentService = {
reason
}
});
},
async batchProcessContentReports({ report_ids, action, content_action, reason } = {}) {
if (!Array.isArray(report_ids) || report_ids.length === 0) {
throw new Error('report_ids is required');
}
return requestJson('/super/v1/content-reports/process/batch', {
method: 'POST',
body: {
report_ids,
action,
content_action,
reason
}
});
}
};