[TOC=2]
## 枚举变量
### 用户性别:gender
| 可选值 | 说明 |
| --- | --- |
| male | 男 |
| female | 女 |
| secret | 保密 |
## 用户列表
~~~[api]
get:/user/list
int:current_page=1#当前页
int:page_number=10#页码
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 1,
"avatar": "",//头像地址
"nickname": "",//用户昵称
"gender": "secret",//用户性别
"birthday": null,//用户生日
"signature": "",//个性签名
"last_login_time": "2018-04-19 16:58:29",//最后一次登录时间
"status": true,//是否启用 true 启用 false 冻结
"create_time": "2018-04-19 16:58:29",//注册时间
"phone": "15181474781"//手机号
}
],
"current_page": 1,//当前页
"page_number": 10,//页码
"total": 1//总条数
}
}
~~~
## 用户搜索
~~~[api]
get:/user/search
*string:search=15181474781#用户昵称或者手机号
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 1,
"avatar": "",
"nickname": "",
"gender": "secret",
"birthday": null,
"signature": "",
"last_login_time": "2018-04-19 16:58:29",
"status": true,
"create_time": "2018-04-19 16:58:29",
"phone": "15181474781"
}
]
}
}
~~~
## 用户冻结
~~~[api]
post:/user/site
*int:id=1#用户列表的id
*boolean:status=false/true#是否启用
<<<
success
{
"code": 0,
"data": {
"id": 1,
"status": true//true 表示启用 false 表示冻结
}
}
~~~