Showing
1 changed file
with
46 additions
and
0 deletions
@@ -316,6 +316,52 @@ token信息需要写入HTTP请求的header中, header name为 `auth_fish_token` | @@ -316,6 +316,52 @@ token信息需要写入HTTP请求的header中, header name为 `auth_fish_token` | ||
316 | ``` | 316 | ``` |
317 | 317 | ||
318 | 318 | ||
319 | +# 新增/修改用户 | ||
320 | + | ||
321 | +## 请求参数 | ||
322 | +`/auth/fish/user ` | ||
323 | + | ||
324 | + | ||
325 | +<table> | ||
326 | + <tr> | ||
327 | + <td>参数名称</td> <td>参数说明</td> | ||
328 | + </tr> | ||
329 | + | ||
330 | + <tr> | ||
331 | + <td>name</td> </td>登录用户名(员工邮箱, 新建用户会发送重置密码邮件)</td> | ||
332 | + </tr> | ||
333 | + <tr> | ||
334 | + <td>realName</td> <td>真实姓名</td> | ||
335 | + </tr> | ||
336 | + <tr> | ||
337 | + <td>type</td> <td>员工类型, 从 /auth/fish/user/type 获取</td> | ||
338 | + </tr> | ||
339 | +</table> | ||
319 | 340 | ||
320 | 341 | ||
342 | +## 请求方式 | ||
343 | +` HTTP POST ` | ||
344 | + | ||
345 | + | ||
346 | +## 返回值 | ||
347 | +``` | ||
348 | +{ | ||
349 | + "code": 0, | ||
350 | + "message": "成功", | ||
351 | + "tokenInvalidTime": "2016-05-24 02:05:39", | ||
352 | + "data": { | ||
353 | + "id": 127, | ||
354 | + "name": "testuser1@371223515.cn", | ||
355 | + "type": "BD", | ||
356 | + "realName": "测试用户3", | ||
357 | + "createAt": "2016-05-23 21:05:39", | ||
358 | + "updateAt": "2016-05-23 21:05:39", | ||
359 | + "lastLoginTime": null | ||
360 | + } | ||
361 | +} | ||
362 | + | ||
363 | +``` | ||
364 | + | ||
365 | + | ||
366 | + | ||
321 | 367 |
-
Please register or login to post a comment