feat: extend superadmin navigation
This commit is contained in:
@@ -67,23 +67,7 @@ export const ContentService = {
|
||||
items: normalizeItems(data?.items)
|
||||
};
|
||||
},
|
||||
async listTenantContents(
|
||||
tenantID,
|
||||
{
|
||||
page,
|
||||
limit,
|
||||
keyword,
|
||||
status,
|
||||
visibility,
|
||||
user_id,
|
||||
published_at_from,
|
||||
published_at_to,
|
||||
created_at_from,
|
||||
created_at_to,
|
||||
sortField,
|
||||
sortOrder
|
||||
} = {}
|
||||
) {
|
||||
async listTenantContents(tenantID, { page, limit, keyword, status, visibility, user_id, published_at_from, published_at_to, created_at_from, created_at_to, sortField, sortOrder } = {}) {
|
||||
if (!tenantID) throw new Error('tenantID is required');
|
||||
|
||||
const iso = (d) => {
|
||||
@@ -117,8 +101,7 @@ export const ContentService = {
|
||||
total: data?.total ?? 0,
|
||||
items: normalizeItems(data?.items)
|
||||
};
|
||||
}
|
||||
,
|
||||
},
|
||||
async updateTenantContentStatus(tenantID, contentID, { status } = {}) {
|
||||
if (!tenantID) throw new Error('tenantID is required');
|
||||
if (!contentID) throw new Error('contentID is required');
|
||||
|
||||
Reference in New Issue
Block a user