简要描述:

获取用户列表

请求URL:

  1. http://localhost:8889/api/userList

请求方式:

  • GET
  • 参数

    • curl -GET
      http://localhost:8889/api/userList?tokenKey=D826804E5FF8AB9381117F6E785A506C
      

      表头:

      Content-Type:application/json
      

      URL参数:

      | 参数名 | 类型 | 说明 | | —- | —- | —- | | tokenKey | String | 管理员token | | | | |
  • 以上参数用作用户Token校验。

用户唯一标识

请求参数:

参数名 是否必须 类型 说明

输入实例:

{

}

返回参数:

参数名 是否必须 类型 说明
status_msg true String 错误信息
status_code true String 错误代码
-0正确
-1001记录不在数据库中或者解析错误
-1002不存在或者记录格式错误
content false String 返回 方案内容, JSON格式字符串

返回示例:

{
    "code": 0,
    "message": null,
    "data": [
        {
            "id": 1,
            "username": "admin",
            "password": "21232f297a57a5a743894a0e4a801fc3",
            "avatar": "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2113373100,550995939&fm=26&gp=0.jpg",
            "email": "admin@outlook.com",
            "nickname": "管理员",
            "accoutKey": null,
            "type": true,
            "createTime": "2021-06-08T21:54:56.000+00:00"
        },
        {
            "id": 2,
            "username": "user",
            "password": "ee11cbb19052e40b07aac0ca060c23ee",
            "avatar": "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1194131577,2954769920&fm=26&gp=0.jpg",
            "email": "user@outlook.com",
            "nickname": "普通用户",
            "accoutKey": null,
            "type": false,
            "createTime": "2021-05-26T10:59:55.000+00:00"
        },
        {
            "id": 3,
            "username": "user1",
            "password": "e10adc3949ba59abbe56e057f20f883e",
            "avatar": null,
            "email": "user1@qq.com",
            "nickname": "测试人员2",
            "accoutKey": null,
            "type": null,
            "createTime": "2021-06-05T02:09:17.000+00:00"
        }
    ]
}