liuxiaolong
2019-05-06 f99bc8c6a1d10610373738edd7d0aa0181c81d99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
用户-UserController
 
1.当前登录用户信息
        请求地址:http://localhost:8080/api-u/users/current
        请求方式:Get
        请求参数:
        返回对象:LoginAppUser
 
2.用户查询
       请求地址:http://localhost:8080/api-u/users/
       请求方式:Get
       请求参数:Map[分页:start,length 分库:orgId]
       返回对象:Page<AppUser>
 
3.根据ID查询用户
       请求地址:http://localhost:8080/api-u/users/{id}/{orgId}
       请求方式:Get
       请求参数:(用户 id, 分库:orgId)
       返回对象:AppUser
               {
                 "id": 1,
                 "orgId": 101,
                 "officeId": 101,
                 "username": "admin",
                 "password": "$2a$10$3uOoX1ps14CxuotogUoDreW8zXJOZB9XeGdrC/xDV36hhaE8Rn9HO",
                 "nickname": "测试1",
                 "phone": "",
                 "sex": 0,
                 "type": "APP",
                 "no": null,
                 "telPhone": null,
                 "headImgUrl": "",
                 "qrCode": null,
                 "idCard": null,
                 "userType": null,
                 "dataScope": null,
                 "enabled": true,
                 "delFlag": null,
                 "createTime": 1516118400000,
                 "updateTime": 1526008102000,
                 "email": null
               }
 
4.添加用户
       请求地址:http://localhost:8080/api-u/users-anon/register
       请求方式:Post
       请求参数:新 AppUser
       返回对象:当前 AppUser
 
5.修改用户-修改自己的信息
       请求地址:http://localhost:8080/api-u/users/me
       请求方式:Put
       请求参数:新 AppUser
       返回对象:当前 AppUser
 
6.修改密码-修改自己
       请求地址:http://localhost:8080/api-u/users/password
       请求方式:Put
       请求参数:oldPassword,newPassword
       返回对象:
 
7.修改秘密-重置用户密码
      请求地址:http://localhost:8080/api-u/users/{id}/{orgId}/password
      请求方式:Put
      请求参数:用户-id,分库-orgId,新密码-newPassword
      返回对象:
 
8.管理用户信息
      请求地址:http://localhost:8080/api-u/users
      请求方式:Put
      请求参数:AppUser
      返回对象: