提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface TenantVO { |
|
4 |
id: number |
|
5 |
name: string |
|
6 |
contactName: string |
|
7 |
contactMobile: string |
|
8 |
status: number |
|
9 |
domain: string |
|
10 |
packageId: number |
|
11 |
username: string |
|
12 |
password: string |
|
13 |
expireTime: Date |
|
14 |
accountCount: number |
|
15 |
createTime: Date |
|
16 |
} |
|
17 |
|
|
18 |
export interface TenantPageReqVO extends PageParam { |
|
19 |
name?: string |
|
20 |
contactName?: string |
|
21 |
contactMobile?: string |
|
22 |
status?: number |
|
23 |
createTime?: Date[] |
|
24 |
} |
|
25 |
|
|
26 |
export interface TenantExportReqVO { |
|
27 |
name?: string |
|
28 |
contactName?: string |
|
29 |
contactMobile?: string |
|
30 |
status?: number |
|
31 |
createTime?: Date[] |
|
32 |
} |
|
33 |
|
|
34 |
// 查询租户列表 |
|
35 |
export const getTenantPage = (params: TenantPageReqVO) => { |
|
36 |
return request.get({ url: '/system/tenant/page', params }) |
|
37 |
} |
|
38 |
|
|
39 |
// 查询租户详情 |
|
40 |
export const getTenant = (id: number) => { |
|
41 |
return request.get({ url: '/system/tenant/get?id=' + id }) |
|
42 |
} |
|
43 |
|
|
44 |
// 新增租户 |
|
45 |
export const createTenant = (data: TenantVO) => { |
|
46 |
return request.post({ url: '/system/tenant/create', data }) |
|
47 |
} |
|
48 |
|
|
49 |
// 修改租户 |
|
50 |
export const updateTenant = (data: TenantVO) => { |
|
51 |
return request.put({ url: '/system/tenant/update', data }) |
|
52 |
} |
|
53 |
|
|
54 |
// 删除租户 |
|
55 |
export const deleteTenant = (id: number) => { |
|
56 |
return request.delete({ url: '/system/tenant/delete?id=' + id }) |
|
57 |
} |
|
58 |
|
|
59 |
// 导出租户 |
|
60 |
export const exportTenant = (params: TenantExportReqVO) => { |
|
61 |
return request.download({ url: '/system/tenant/export-excel', params }) |
|
62 |
} |