[TOC=2]
## 枚举变量
## 获取个人资料
~~~[api]
get:/user_info/get_info
<<<
success
{
"code": 0,
"data": {
"avatar": "",//头像地址
"nickname": "",//昵称
"gender": "male",//性别 见枚举变量
"birthday": "2019-02-02",//生日
"signature": "",//签名
"last_login_time": 1519725810//最近登录时间
}
}
~~~
## 设置个人资料
~~~[api]
post:/user_info/set_info
*string:nickname=123#昵称
string:avatar=""#头像地址
string:gender=male#性别
date:birthday=2014-02-03#生日
string:signature=""#签名
<<<
success
{
"code": 0,
"data": {
"birthday": "2019-02-02",
"nickname": "123",
"gender": "male",
"signature": "",//签名
}
}
<<<
error
{
"code": -1,
"msg": "昵称必须"
}
~~~