commit | author | age
|
9bcb19
|
1 |
/** |
I |
2 |
* 代码生成 |
|
3 |
* |
|
4 |
* @author yubaoshan |
|
5 |
* @date 2020/12/23 15:00 |
|
6 |
*/ |
|
7 |
import { axios } from '@/utils/request' |
|
8 |
|
|
9 |
/** |
|
10 |
* 查询列表 |
|
11 |
* |
|
12 |
* @author yubaoshan |
|
13 |
* @date 2020/12/23 15:00 |
|
14 |
*/ |
|
15 |
export function codeGeneratePage (parameter) { |
|
16 |
return axios({ |
|
17 |
url: '/codeGenerate/page', |
|
18 |
method: 'get', |
|
19 |
params: parameter |
|
20 |
}) |
|
21 |
} |
|
22 |
|
|
23 |
/** |
|
24 |
* 增加 |
|
25 |
* |
|
26 |
* @author yubaoshan |
|
27 |
* @date 2020/12/23 15:00 |
|
28 |
*/ |
|
29 |
export function codeGenerateAdd (parameter) { |
|
30 |
return axios({ |
|
31 |
url: '/codeGenerate/add', |
|
32 |
method: 'post', |
|
33 |
data: parameter |
|
34 |
}) |
|
35 |
} |
|
36 |
|
|
37 |
/** |
|
38 |
* 编辑 |
|
39 |
* |
|
40 |
* @author yubaoshan |
|
41 |
* @date 2020/12/23 15:00 |
|
42 |
*/ |
|
43 |
export function codeGenerateEdit (parameter) { |
|
44 |
return axios({ |
|
45 |
url: '/codeGenerate/edit', |
|
46 |
method: 'post', |
|
47 |
data: parameter |
|
48 |
}) |
|
49 |
} |
|
50 |
|
|
51 |
/** |
|
52 |
* 删除 |
|
53 |
* |
|
54 |
* @author yubaoshan |
|
55 |
* @date 2020/12/23 15:00 |
|
56 |
*/ |
|
57 |
export function codeGenerateDelete (parameter) { |
|
58 |
return axios({ |
|
59 |
url: '/codeGenerate/delete', |
|
60 |
method: 'post', |
|
61 |
data: parameter |
|
62 |
}) |
|
63 |
} |
|
64 |
|
|
65 |
/** |
|
66 |
* 查询当前数据库用户下的所有表 |
|
67 |
* |
|
68 |
* @author yubaoshan |
|
69 |
* @date 2020/12/23 15:00 |
|
70 |
*/ |
|
71 |
export function codeGenerateInformationList (parameter) { |
|
72 |
return axios({ |
|
73 |
url: '/codeGenerate/InformationList', |
|
74 |
method: 'get', |
|
75 |
params: parameter |
|
76 |
}) |
|
77 |
} |
|
78 |
|
|
79 |
/** |
|
80 |
* 本地生成 |
|
81 |
* |
|
82 |
* @author yubaoshan |
|
83 |
* @date 2020/12/23 15:00 |
|
84 |
*/ |
|
85 |
export function codeGenerateRunLocal (parameter) { |
|
86 |
return axios({ |
|
87 |
url: '/codeGenerate/runLocal', |
|
88 |
method: 'post', |
|
89 |
data: parameter |
|
90 |
}) |
|
91 |
} |
|
92 |
|
|
93 |
/** |
|
94 |
* 压缩包方式下载 |
|
95 |
* |
|
96 |
* @author yubaoshan |
|
97 |
* @date 2020/12/23 15:00 |
|
98 |
*/ |
|
99 |
export function codeGenerateRunDown (parameter) { |
|
100 |
return axios({ |
|
101 |
url: '/codeGenerate/runDown', |
|
102 |
method: 'get', |
|
103 |
params: parameter, |
|
104 |
responseType: 'blob' |
|
105 |
}) |
|
106 |
} |