feat: 添加租户创建功能,支持设置管理员及有效期,新增订单统计接口
This commit is contained in:
@@ -22,6 +22,17 @@ export const TenantService = {
|
||||
items: normalizeItems(data?.items)
|
||||
};
|
||||
},
|
||||
async createTenant({ code, name, admin_user_id, duration } = {}) {
|
||||
return requestJson('/super/v1/tenants', {
|
||||
method: 'POST',
|
||||
body: {
|
||||
code,
|
||||
name,
|
||||
admin_user_id,
|
||||
duration
|
||||
}
|
||||
});
|
||||
},
|
||||
async renewTenantExpire({ tenantID, duration }) {
|
||||
return requestJson(`/super/v1/tenants/${tenantID}`, {
|
||||
method: 'PATCH',
|
||||
|
||||
Reference in New Issue
Block a user