提交 | 用户 | 时间
|
cb6cd2
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface DemoVO { |
|
4 |
id: number |
|
5 |
code: string |
|
6 |
name: string |
|
7 |
icon: string |
|
8 |
orderNum: number |
|
9 |
status: number |
|
10 |
remark: string |
|
11 |
createTime: Date |
|
12 |
} |
|
13 |
|
|
14 |
// 查询列表 |
|
15 |
export const getDemoPage = (params: PageParam) => { |
|
16 |
return request.get({ url: '/ansteel/demo/page', params }) |
|
17 |
} |
|
18 |
|
|
19 |
// 获得 |
|
20 |
export const getDemo = (id: number) => { |
|
21 |
return request.get({ url: '/ansteel/demo/get?id=' + id }) |
|
22 |
} |
|
23 |
|
|
24 |
// 查询应用列表 |
|
25 |
export const getDemoList = () => { |
|
26 |
return request.get({ url: '/ansteel/demo/list' }) |
|
27 |
} |
|
28 |
|
|
29 |
// 新增 |
|
30 |
export const createDemo = (data: DemoVO) => { |
|
31 |
return request.post({ url: '/ansteel/demo/create', data }) |
|
32 |
} |
|
33 |
|
|
34 |
// 修改 |
|
35 |
export const updateDemo = (data: DemoVO) => { |
|
36 |
return request.put({ url: '/ansteel/demo/update', data }) |
|
37 |
} |
|
38 |
|
|
39 |
// 删除 |
|
40 |
export const deleteDemo = (id: number) => { |
|
41 |
return request.delete({ url: '/ansteel/demo/delete?id=' + id }) |
|
42 |
} |
|
43 |
|
|
44 |
// 导出 |
|
45 |
export const exportDemo = (params: DemoVO) => { |
|
46 |
return request.download({ url: '/ansteel/demo/export-excel', params }) |
|
47 |
} |