提交 | 用户 | 时间
|
db5c54
|
1 |
import request from '@/config/axios' |
潘 |
2 |
|
|
3 |
export interface AppVO { |
|
4 |
id: number |
|
5 |
appCode: string |
|
6 |
appName: string |
|
7 |
appDomain: string |
|
8 |
apiDomain: string |
|
9 |
appKey: string |
|
10 |
appSecret: string |
|
11 |
appGroup: string |
|
12 |
loadType: string |
|
13 |
icon: string |
|
14 |
orderNum: number |
|
15 |
status: number |
|
16 |
devId: string |
|
17 |
devName: string |
|
18 |
remark: string |
|
19 |
createTime: Date |
|
20 |
} |
|
21 |
|
39248b
|
22 |
// 查询分页列表 |
db5c54
|
23 |
export const getAppPage = (params: PageParam) => { |
潘 |
24 |
return request.get({ url: '/system/app/page', params }) |
|
25 |
} |
|
26 |
|
39248b
|
27 |
// 查询列表 |
H |
28 |
export const getAppList = () => { |
|
29 |
return request.get({ url: '/system/app/getAppList' }) |
|
30 |
} |
|
31 |
|
db5c54
|
32 |
// 获得 |
潘 |
33 |
export const getApp = (id: number) => { |
|
34 |
return request.get({ url: '/system/app/get?id=' + id }) |
|
35 |
} |
|
36 |
|
|
37 |
// 新增 |
|
38 |
export const createApp = (data: AppVO) => { |
|
39 |
return request.post({ url: '/system/app/create', data }) |
|
40 |
} |
|
41 |
|
|
42 |
// 修改 |
|
43 |
export const updateApp = (data: AppVO) => { |
|
44 |
return request.put({ url: '/system/app/update', data }) |
|
45 |
} |
|
46 |
|
|
47 |
// 删除 |
|
48 |
export const deleteApp = (id: number) => { |
|
49 |
return request.delete({ url: '/system/app/delete?id=' + id }) |
|
50 |
} |
|
51 |
|
|
52 |
// 导出 |
203fd3
|
53 |
export const exportApp = (params: AppVO) => { |
db5c54
|
54 |
return request.download({ url: '/system/app/export-excel', params }) |
潘 |
55 |
} |