You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
717 B
35 lines
717 B
import type { GetTenantListParams, Tenant } from './types' |
|
import { defHttp } from '@/utils/http/axios' |
|
|
|
export function getTenantList(params: GetTenantListParams) { |
|
return defHttp.get<PageResult<Tenant>>({ |
|
url: '/system/tenant/page', |
|
params, |
|
}) |
|
} |
|
|
|
export function updateTenant(data: Tenant) { |
|
return defHttp.post({ |
|
url: '/system/tenant/update', |
|
data, |
|
}) |
|
} |
|
|
|
export function createTenant(data: Tenant) { |
|
return defHttp.post({ |
|
url: '/system/tenant/save', |
|
data, |
|
}) |
|
} |
|
|
|
export function deleteTenant(id: string) { |
|
return defHttp.post({ |
|
url: `/system/tenant/remove?id=${id}`, |
|
}) |
|
} |
|
|
|
export function getAllTenants() { |
|
return defHttp.get({ |
|
url: '/system/tenant/select', |
|
}) |
|
}
|
|
|