feat: add batch content governance actions
This commit is contained in:
@@ -131,6 +131,17 @@ export const ContentService = {
|
||||
}
|
||||
});
|
||||
},
|
||||
async batchUpdateContentStatus({ content_ids, status, reason } = {}) {
|
||||
if (!Array.isArray(content_ids) || content_ids.length === 0) throw new Error('content_ids is required');
|
||||
return requestJson('/super/v1/contents/status/batch', {
|
||||
method: 'POST',
|
||||
body: {
|
||||
content_ids,
|
||||
status,
|
||||
reason
|
||||
}
|
||||
});
|
||||
},
|
||||
async getContentStatistics({ tenant_id, start_at, end_at, granularity } = {}) {
|
||||
const iso = (d) => {
|
||||
if (!d) return undefined;
|
||||
|
||||
Reference in New Issue
Block a user