提交 | 用户 | 时间
|
e7c126
|
1 |
import { defHttp } from '@/utils/http/axios' |
H |
2 |
#set ($baseURL = "/${table.moduleName}/${simpleClassName_strikeCase}") |
|
3 |
|
|
4 |
// 查询${table.classComment}列表 |
|
5 |
export function get${simpleClassName}Page(params) { |
|
6 |
return defHttp.get({ url: '${baseURL}/page', params }) |
|
7 |
} |
|
8 |
|
|
9 |
// 查询${table.classComment}详情 |
|
10 |
export function get${simpleClassName}(id: number) { |
|
11 |
return defHttp.get({ url: `${baseURL}/get?id=${id}` }) |
|
12 |
} |
|
13 |
|
|
14 |
// 新增${table.classComment} |
|
15 |
export function create${simpleClassName}(data) { |
|
16 |
return defHttp.post({ url: '${baseURL}/create', data }) |
|
17 |
} |
|
18 |
|
|
19 |
// 修改${table.classComment} |
|
20 |
export function update${simpleClassName}(data) { |
|
21 |
return defHttp.put({ url: '${baseURL}/update', data }) |
|
22 |
} |
|
23 |
|
|
24 |
// 删除${table.classComment} |
|
25 |
export function delete${simpleClassName}(id: number) { |
|
26 |
return defHttp.delete({ url: `${baseURL}/delete?id=${id}` }) |
|
27 |
} |
|
28 |
|
|
29 |
// 导出${table.classComment} Excel |
|
30 |
export function export${simpleClassName}(params) { |
|
31 |
return defHttp.download({ url: '${baseURL}/export-excel', params }, '${table.classComment}.xls') |
|
32 |
} |