API: 用户列表接口 - maomeng-dev/homingleopards-api GitHub Wiki

API

获取用户列表接口。

URL

/api/backend/user/list

Auth

true

Request

Method

GET

Params

Param Type Require Comment
page Int * 当前页码
pageSize Int * 每页数据量

Response

Params

  • page: Object
Param Type Comment
current Int 当前页码
size Int 每页数据量
total Int 总数据量
page_total Int 总页数
  • list: Array
Param Type Comment

Demo

{
  "errno": 0,
  "errmsg": "",
  "data": {
    "page": {
      "current": 1,
      "size": 10,
      "total": 2,
      "page_total": 1
    },
    "list": [
      {
        "id":0,
        "user_name":"maomeng_admin",
        "nickname":"猫老大",
        "avatar":"https://cdn.homingleopards.org/resource/image/2017/12/index-photos-8.jpg",
        "cre_time":"1558837230000",
        "is_super_user":true,
        "last_login_ip":"127.0.0.1",
        "last_login_time":"1558873462790",
        "group_id":1,
        "status":1,
        "comment":"这个是管理员帐号!",
        "create_by":"maomeng_admin"
      },
      {
        "id":1,
        "user_name":"konrumi",
        "nickname":"赤赤赤赤狐",
        "avatar":"https://cdn.homingleopards.org/resource/image/2017/12/index-photos-10.jpg",
        "cre_time":"1558837230000",
        "is_super_user":false,
        "last_login_ip":"127.0.0.1",
        "last_login_time":"1558873462790",
        "group_id":1,
        "status":1,
        "comment":"这里写一些备注\n以防忘记重要的事情!",
        "create_by":"maomeng_admin"
      }
    ]
  }
}