feat:增加切换租户的功能

This commit is contained in:
YunaiV
2025-05-05 17:02:48 +08:00
parent 2765c4adde
commit c6898c0a99
6 changed files with 83 additions and 4 deletions

View File

@@ -41,6 +41,11 @@ export const getTenant = (id: number) => {
return request.get({ url: '/system/tenant/get?id=' + id })
}
// 获取租户精简信息列表
export const getTenantList = () => {
return request.get({ url: '/system/tenant/simple-list' })
}
// 新增租户
export const createTenant = (data: TenantVO) => {
return request.post({ url: '/system/tenant/create', data })