提交 | 用户 | 时间
|
314507
|
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) => { |
8e4ab7
|
16 |
return request.get({ url: '/shasteel/demo/page', params }) |
314507
|
17 |
} |
H |
18 |
|
|
19 |
// 获得 |
|
20 |
export const getDemo = (id: number) => { |
8e4ab7
|
21 |
return request.get({ url: '/shasteel/demo/get?id=' + id }) |
314507
|
22 |
} |
H |
23 |
|
|
24 |
// 查询应用列表 |
|
25 |
export const getDemoList = () => { |
8e4ab7
|
26 |
return request.get({ url: '/shasteel/demo/list' }) |
314507
|
27 |
} |
H |
28 |
|
|
29 |
// 新增 |
|
30 |
export const createDemo = (data: DemoVO) => { |
8e4ab7
|
31 |
return request.post({ url: '/shasteel/demo/create', data }) |
314507
|
32 |
} |
H |
33 |
|
|
34 |
// 修改 |
|
35 |
export const updateDemo = (data: DemoVO) => { |
8e4ab7
|
36 |
return request.put({ url: '/shasteel/demo/update', data }) |
314507
|
37 |
} |
H |
38 |
|
|
39 |
// 删除 |
|
40 |
export const deleteDemo = (id: number) => { |
8e4ab7
|
41 |
return request.delete({ url: '/shasteel/demo/delete?id=' + id }) |
314507
|
42 |
} |
H |
43 |
|
|
44 |
// 导出 |
|
45 |
export const exportDemo = (params: DemoVO) => { |
8e4ab7
|
46 |
return request.download({ url: '/shasteel/demo/export-excel', params }) |
314507
|
47 |
} |