提交 | 用户 | 时间
|
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 |
|
effbd8
|
27 |
// 查询所拥有应用列表 |
39248b
|
28 |
export const getAppList = () => { |
effbd8
|
29 |
return request.get({ url: '/system/auth/get-app-permission' }) |
H |
30 |
} |
|
31 |
|
|
32 |
// 查询所拥有应用菜单列表 |
|
33 |
export const getAppMenuList = (id) => { |
|
34 |
return request.get({ url: '/system/auth/get-app-menu-permission?id=' + id }) |
39248b
|
35 |
} |
H |
36 |
|
db5c54
|
37 |
// 获得 |
潘 |
38 |
export const getApp = (id: number) => { |
|
39 |
return request.get({ url: '/system/app/get?id=' + id }) |
|
40 |
} |
|
41 |
|
|
42 |
// 新增 |
|
43 |
export const createApp = (data: AppVO) => { |
|
44 |
return request.post({ url: '/system/app/create', data }) |
|
45 |
} |
|
46 |
|
|
47 |
// 修改 |
|
48 |
export const updateApp = (data: AppVO) => { |
|
49 |
return request.put({ url: '/system/app/update', data }) |
|
50 |
} |
|
51 |
|
|
52 |
// 删除 |
|
53 |
export const deleteApp = (id: number) => { |
|
54 |
return request.delete({ url: '/system/app/delete?id=' + id }) |
|
55 |
} |
|
56 |
|
|
57 |
// 导出 |
203fd3
|
58 |
export const exportApp = (params: AppVO) => { |
db5c54
|
59 |
return request.download({ url: '/system/app/export-excel', params }) |
潘 |
60 |
} |