feat: extend superadmin navigation
This commit is contained in:
@@ -7,21 +7,7 @@ function normalizeItems(items) {
|
||||
}
|
||||
|
||||
export const UserService = {
|
||||
async listUsers({
|
||||
page,
|
||||
limit,
|
||||
id,
|
||||
tenant_id,
|
||||
username,
|
||||
status,
|
||||
role,
|
||||
created_at_from,
|
||||
created_at_to,
|
||||
verified_at_from,
|
||||
verified_at_to,
|
||||
sortField,
|
||||
sortOrder
|
||||
} = {}) {
|
||||
async listUsers({ page, limit, id, tenant_id, username, status, role, created_at_from, created_at_to, verified_at_from, verified_at_to, sortField, sortOrder } = {}) {
|
||||
const iso = (d) => {
|
||||
if (!d) return undefined;
|
||||
const date = d instanceof Date ? d : new Date(d);
|
||||
@@ -98,10 +84,7 @@ export const UserService = {
|
||||
if (!userID) throw new Error('userID is required');
|
||||
return requestJson(`/super/v1/users/${userID}`);
|
||||
},
|
||||
async listUserTenants(
|
||||
userID,
|
||||
{ page, limit, tenant_id, code, name, role, status, created_at_from, created_at_to } = {}
|
||||
) {
|
||||
async listUserTenants(userID, { page, limit, tenant_id, code, name, role, status, created_at_from, created_at_to } = {}) {
|
||||
if (!userID) throw new Error('userID is required');
|
||||
|
||||
const iso = (d) => {
|
||||
|
||||
Reference in New Issue
Block a user