feat: add batch content report processing
This commit is contained in:
@@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user