commit | author | age
|
9bcb19
|
1 |
import { axios } from '@/utils/request' |
I |
2 |
|
|
3 |
/** |
|
4 |
* 获取用户列表 |
|
5 |
* |
|
6 |
* @author yubaoshan |
|
7 |
* @date 2020/4/26 12:08 |
|
8 |
*/ |
|
9 |
export function getUserPage (parameter) { |
|
10 |
return axios({ |
|
11 |
url: '/sysUser/page', |
|
12 |
method: 'get', |
|
13 |
params: parameter |
|
14 |
}) |
|
15 |
} |
|
16 |
|
|
17 |
/** |
|
18 |
* 增加用户 |
|
19 |
* |
|
20 |
* @author yubaoshan |
|
21 |
* @date 2020/5/5 02:08 |
|
22 |
*/ |
|
23 |
export function sysUserAdd (parameter) { |
|
24 |
return axios({ |
|
25 |
url: '/sysUser/add', |
|
26 |
method: 'post', |
|
27 |
data: parameter |
|
28 |
}) |
|
29 |
} |
|
30 |
|
|
31 |
/** |
|
32 |
* 编辑用户 |
|
33 |
* |
|
34 |
* @author yubaoshan |
|
35 |
* @date 2020/5/5 02:08 |
|
36 |
*/ |
|
37 |
export function sysUserEdit (parameter) { |
|
38 |
return axios({ |
|
39 |
url: '/sysUser/edit', |
|
40 |
method: 'post', |
|
41 |
data: parameter |
|
42 |
}) |
|
43 |
} |
|
44 |
|
|
45 |
/** |
|
46 |
* 获取用户详情 |
|
47 |
* |
|
48 |
* @author yubaoshan |
|
49 |
* @date 2020/5/5 19:55 |
|
50 |
*/ |
|
51 |
export function sysUserDetail (parameter) { |
|
52 |
return axios({ |
|
53 |
url: '/sysUser/detail', |
|
54 |
method: 'get', |
|
55 |
params: parameter |
|
56 |
}) |
|
57 |
} |
|
58 |
|
|
59 |
/** |
|
60 |
* 删除用户 |
|
61 |
* |
|
62 |
* @author yubaoshan |
|
63 |
* @date 2020/5/7 19:31 |
|
64 |
*/ |
|
65 |
export function sysUserDelete (parameter) { |
|
66 |
return axios({ |
|
67 |
url: '/sysUser/delete', |
|
68 |
method: 'post', |
|
69 |
data: parameter |
|
70 |
}) |
|
71 |
} |
|
72 |
|
|
73 |
/** |
|
74 |
* 导出用户 |
|
75 |
* |
|
76 |
* @author yubaoshan |
|
77 |
* @date 2021/5/30 00:23 |
|
78 |
*/ |
|
79 |
export function sysUserExport (parameter) { |
|
80 |
return axios({ |
|
81 |
url: '/sysUser/export', |
|
82 |
method: 'get', |
|
83 |
params: parameter, |
|
84 |
responseType: 'blob' |
|
85 |
}) |
|
86 |
} |
|
87 |
|
|
88 |
/** |
|
89 |
* 拥有角色 |
|
90 |
* |
|
91 |
* @author yubaoshan |
|
92 |
* @date 2020/6/3 11:58 |
|
93 |
*/ |
|
94 |
export function sysUserOwnRole (parameter) { |
|
95 |
return axios({ |
|
96 |
url: '/sysUser/ownRole', |
|
97 |
method: 'get', |
|
98 |
params: parameter |
|
99 |
}) |
|
100 |
} |
|
101 |
|
|
102 |
/** |
|
103 |
* 授权角色 |
|
104 |
* |
|
105 |
* @author yubaoshan |
|
106 |
* @date 2020/5/26 23:59 |
|
107 |
*/ |
|
108 |
export function sysUserGrantRole (parameter) { |
|
109 |
return axios({ |
|
110 |
url: '/sysUser/grantRole', |
|
111 |
method: 'post', |
|
112 |
data: parameter |
|
113 |
}) |
|
114 |
} |
|
115 |
|
|
116 |
/** |
|
117 |
* 拥有数据 |
|
118 |
* |
|
119 |
* @author yubaoshan |
|
120 |
* @date 2020/6/2 23:14 |
|
121 |
*/ |
|
122 |
export function sysUserOwnData (parameter) { |
|
123 |
return axios({ |
|
124 |
url: '/sysUser/ownData', |
|
125 |
method: 'get', |
|
126 |
params: parameter |
|
127 |
}) |
|
128 |
} |
|
129 |
|
|
130 |
/** |
|
131 |
* 授权数据 |
|
132 |
* |
|
133 |
* @author yubaoshan |
|
134 |
* @date 2020/6/2 23:15 |
|
135 |
*/ |
|
136 |
export function sysUserGrantData (parameter) { |
|
137 |
return axios({ |
|
138 |
url: '/sysUser/grantData', |
|
139 |
method: 'post', |
|
140 |
data: parameter |
|
141 |
}) |
|
142 |
} |
|
143 |
|
|
144 |
/** |
|
145 |
* 修改状态 |
|
146 |
* |
|
147 |
* @author yubaoshan |
|
148 |
* @date 2020/6/23 21:36 |
|
149 |
*/ |
|
150 |
export function sysUserChangeStatus (parameter) { |
|
151 |
return axios({ |
|
152 |
url: '/sysUser/changeStatus', |
|
153 |
method: 'post', |
|
154 |
data: parameter |
|
155 |
}) |
|
156 |
} |
|
157 |
|
|
158 |
/** |
|
159 |
* 重置密码 |
|
160 |
* |
|
161 |
* @author yubaoshan |
|
162 |
* @date 2020/6/23 22:04 |
|
163 |
*/ |
|
164 |
export function sysUserResetPwd (parameter) { |
|
165 |
return axios({ |
|
166 |
url: '/sysUser/resetPwd', |
|
167 |
method: 'post', |
|
168 |
data: parameter |
|
169 |
}) |
|
170 |
} |
|
171 |
|
|
172 |
/** |
|
173 |
* 修改密码 |
|
174 |
* |
|
175 |
* @author yubaoshan |
|
176 |
* @date 2020/6/25 00:25 |
|
177 |
*/ |
|
178 |
export function sysUserUpdatePwd (parameter) { |
|
179 |
return axios({ |
|
180 |
url: '/sysUser/updatePwd', |
|
181 |
method: 'post', |
|
182 |
data: parameter |
|
183 |
}) |
|
184 |
} |
|
185 |
|
|
186 |
/** |
|
187 |
* 用户选择器 |
|
188 |
* |
|
189 |
* @author yubaoshan |
|
190 |
* @date 2020/6/25 00:25 |
|
191 |
*/ |
|
192 |
export function sysUserSelector (parameter) { |
|
193 |
return axios({ |
|
194 |
url: '/sysUser/selector', |
|
195 |
method: 'get', |
|
196 |
params: parameter |
|
197 |
}) |
|
198 |
} |
|
199 |
|
|
200 |
/** |
|
201 |
* 修改头像 |
|
202 |
* |
|
203 |
* @author yubaoshan |
|
204 |
* @date 2020/9/20 2:21 |
|
205 |
*/ |
|
206 |
export function sysUserUpdateAvatar (parameter) { |
|
207 |
return axios({ |
|
208 |
url: '/sysUser/updateAvatar', |
|
209 |
method: 'post', |
|
210 |
data: parameter |
|
211 |
}) |
|
212 |
} |
|
213 |
|
|
214 |
/** |
|
215 |
* 更新基本信息 |
|
216 |
* |
|
217 |
* @author yubaoshan |
|
218 |
* @date 2020/9/20 03:12 |
|
219 |
*/ |
|
220 |
export function sysUserUpdateInfo (parameter) { |
|
221 |
return axios({ |
|
222 |
url: '/sysUser/updateInfo', |
|
223 |
method: 'post', |
|
224 |
data: parameter |
|
225 |
}) |
|
226 |
} |