commit | author | age
|
9bcb19
|
1 |
import { axios } from '@/utils/request' |
I |
2 |
|
|
3 |
/** |
|
4 |
* 查询${functionName} |
|
5 |
* |
|
6 |
* @author ${authorName} |
|
7 |
* @date ${createDateString} |
|
8 |
*/ |
|
9 |
export function ${className}Page (parameter) { |
|
10 |
return axios({ |
|
11 |
url: '/${className}/page', |
|
12 |
method: 'get', |
|
13 |
params: parameter |
|
14 |
}) |
|
15 |
} |
|
16 |
|
|
17 |
/** |
|
18 |
* ${functionName}列表 |
|
19 |
* |
|
20 |
* @author ${authorName} |
|
21 |
* @date ${createDateString} |
|
22 |
*/ |
|
23 |
export function ${className}List (parameter) { |
|
24 |
return axios({ |
|
25 |
url: '/${className}/list', |
|
26 |
method: 'get', |
|
27 |
params: parameter |
|
28 |
}) |
|
29 |
} |
|
30 |
|
|
31 |
/** |
|
32 |
* 添加${functionName} |
|
33 |
* |
|
34 |
* @author ${authorName} |
|
35 |
* @date ${createDateString} |
|
36 |
*/ |
|
37 |
export function ${className}Add (parameter) { |
|
38 |
return axios({ |
|
39 |
url: '/${className}/add', |
|
40 |
method: 'post', |
|
41 |
data: parameter |
|
42 |
}) |
|
43 |
} |
|
44 |
|
|
45 |
/** |
|
46 |
* 编辑${functionName} |
|
47 |
* |
|
48 |
* @author ${authorName} |
|
49 |
* @date ${createDateString} |
|
50 |
*/ |
|
51 |
export function ${className}Edit (parameter) { |
|
52 |
return axios({ |
|
53 |
url: '/${className}/edit', |
|
54 |
method: 'post', |
|
55 |
data: parameter |
|
56 |
}) |
|
57 |
} |
|
58 |
|
|
59 |
/** |
|
60 |
* 删除${functionName} |
|
61 |
* |
|
62 |
* @author ${authorName} |
|
63 |
* @date ${createDateString} |
|
64 |
*/ |
|
65 |
export function ${className}Delete (parameter) { |
|
66 |
return axios({ |
|
67 |
url: '/${className}/delete', |
|
68 |
method: 'post', |
|
69 |
data: parameter |
|
70 |
}) |
|
71 |
} |
|
72 |
|
|
73 |
/** |
|
74 |
* 导出${functionName} |
|
75 |
* |
|
76 |
* @author ${authorName} |
|
77 |
* @date ${createDateString} |
|
78 |
*/ |
|
79 |
export function ${className}Export (parameter) { |
|
80 |
return axios({ |
|
81 |
url: '/${className}/export', |
|
82 |
method: 'get', |
|
83 |
params: parameter, |
|
84 |
responseType: 'blob' |
|
85 |
}) |
|
86 |
} |