编辑 | blame | 历史 | 原始文档
用户-UserController

1.当前登录用户信息
        请求地址:http://localhost:8080/api-u/users/current
        请求方式:Get
        请求参数:
        返回对象:LoginAppUser

2.用户查询
       请求地址:http://localhost:8080/api-u/users/
       请求方式:Get
       请求参数:Map[分页:start,length 分库:orgId]
       返回对象:Page

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
      返回对象: