提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface TenantPackageVO { |
|
4 |
id: number |
|
5 |
name: string |
|
6 |
status: number |
|
7 |
remark: string |
|
8 |
creator: string |
|
9 |
updater: string |
|
10 |
updateTime: string |
|
11 |
menuIds: number[] |
|
12 |
createTime: Date |
|
13 |
} |
|
14 |
|
|
15 |
// 查询租户套餐列表 |
|
16 |
export const getTenantPackagePage = (params: PageParam) => { |
|
17 |
return request.get({ url: '/system/tenant-package/page', params }) |
|
18 |
} |
|
19 |
|
|
20 |
// 获得租户 |
|
21 |
export const getTenantPackage = (id: number) => { |
|
22 |
return request.get({ url: '/system/tenant-package/get?id=' + id }) |
|
23 |
} |
|
24 |
|
|
25 |
// 新增租户套餐 |
|
26 |
export const createTenantPackage = (data: TenantPackageVO) => { |
|
27 |
return request.post({ url: '/system/tenant-package/create', data }) |
|
28 |
} |
|
29 |
|
|
30 |
// 修改租户套餐 |
|
31 |
export const updateTenantPackage = (data: TenantPackageVO) => { |
|
32 |
return request.put({ url: '/system/tenant-package/update', data }) |
|
33 |
} |
|
34 |
|
|
35 |
// 删除租户套餐 |
|
36 |
export const deleteTenantPackage = (id: number) => { |
|
37 |
return request.delete({ url: '/system/tenant-package/delete?id=' + id }) |
|
38 |
} |
|
39 |
// 获取租户套餐精简信息列表 |
|
40 |
export const getTenantPackageList = () => { |
|
41 |
return request.get({ url: '/system/tenant-package/simple-list' }) |
|
42 |
} |