提交 | 用户 | 时间
|
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 |
82f682
|
15 |
dataSourceConfigId: number |
820397
|
16 |
createTime: Date |
H |
17 |
} |
|
18 |
|
|
19 |
export interface TenantPageReqVO extends PageParam { |
|
20 |
name?: string |
|
21 |
contactName?: string |
|
22 |
contactMobile?: string |
|
23 |
status?: number |
|
24 |
createTime?: Date[] |
|
25 |
} |
|
26 |
|
|
27 |
export interface TenantExportReqVO { |
|
28 |
name?: string |
|
29 |
contactName?: string |
|
30 |
contactMobile?: string |
|
31 |
status?: number |
|
32 |
createTime?: Date[] |
|
33 |
} |
|
34 |
|
|
35 |
// 查询租户列表 |
|
36 |
export const getTenantPage = (params: TenantPageReqVO) => { |
|
37 |
return request.get({ url: '/system/tenant/page', params }) |
|
38 |
} |
|
39 |
|
39248b
|
40 |
// 查询租户列表 |
H |
41 |
export const getSimpleTenant = () => { |
|
42 |
return request.get({ url: '/system/tenant/simple-list' }) |
|
43 |
} |
|
44 |
|
820397
|
45 |
// 查询租户详情 |
H |
46 |
export const getTenant = (id: number) => { |
|
47 |
return request.get({ url: '/system/tenant/get?id=' + id }) |
|
48 |
} |
|
49 |
|
|
50 |
// 新增租户 |
|
51 |
export const createTenant = (data: TenantVO) => { |
|
52 |
return request.post({ url: '/system/tenant/create', data }) |
|
53 |
} |
|
54 |
|
|
55 |
// 修改租户 |
|
56 |
export const updateTenant = (data: TenantVO) => { |
|
57 |
return request.put({ url: '/system/tenant/update', data }) |
|
58 |
} |
|
59 |
|
|
60 |
// 删除租户 |
|
61 |
export const deleteTenant = (id: number) => { |
|
62 |
return request.delete({ url: '/system/tenant/delete?id=' + id }) |
|
63 |
} |
|
64 |
|
|
65 |
// 导出租户 |
|
66 |
export const exportTenant = (params: TenantExportReqVO) => { |
|
67 |
return request.download({ url: '/system/tenant/export-excel', params }) |
|
68 |
} |