提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface Demo01ContactVO { |
|
4 |
id: number |
|
5 |
name: string |
|
6 |
sex: number |
|
7 |
birthday: Date |
|
8 |
description: string |
|
9 |
avatar: string |
|
10 |
} |
|
11 |
|
|
12 |
// 查询示例联系人分页 |
|
13 |
export const getDemo01ContactPage = async (params) => { |
|
14 |
return await request.get({ url: `/infra/demo01-contact/page`, params }) |
|
15 |
} |
|
16 |
|
|
17 |
// 查询示例联系人详情 |
|
18 |
export const getDemo01Contact = async (id: number) => { |
|
19 |
return await request.get({ url: `/infra/demo01-contact/get?id=` + id }) |
|
20 |
} |
|
21 |
|
|
22 |
// 新增示例联系人 |
|
23 |
export const createDemo01Contact = async (data: Demo01ContactVO) => { |
|
24 |
return await request.post({ url: `/infra/demo01-contact/create`, data }) |
|
25 |
} |
|
26 |
|
|
27 |
// 修改示例联系人 |
|
28 |
export const updateDemo01Contact = async (data: Demo01ContactVO) => { |
|
29 |
return await request.put({ url: `/infra/demo01-contact/update`, data }) |
|
30 |
} |
|
31 |
|
|
32 |
// 删除示例联系人 |
|
33 |
export const deleteDemo01Contact = async (id: number) => { |
|
34 |
return await request.delete({ url: `/infra/demo01-contact/delete?id=` + id }) |
|
35 |
} |
|
36 |
|
|
37 |
// 导出示例联系人 Excel |
|
38 |
export const exportDemo01Contact = async (params) => { |
|
39 |
return await request.download({ url: `/infra/demo01-contact/export-excel`, params }) |
|
40 |
} |