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