[TOC=2]
## 枚举变量
### 上传文件类型:( type )
| 可选值 | 说明 |
| --- | --- |
| banner | banner |
| advert | 广告 |
## 个人资料
~~~[api]
get:/userInfo/get
<<<
success
{
"code": 0,
"data": {
"name": "admin",//用户名
"recent_login_time": "2018-01-27 15:35:11",//最后登录时间
"phone": null//手机号
}
}
~~~
## 获取上传信息
~~~[api]
get:/userInfo/getUpdatePath
*string:type=banner#需要上传的类型
<<<
success
{
"code": 0,
"data": {
"oss_id": "LTAIKQgJHXpUTvDf",
"host": "",
"policy": "",
"signature": "FWOg0lwfga+OGdx5Z9rasEzRIYg=",
"expire": 1521110219,
"dir": "admin/category",
"max_size": 10485760
}
}
<<<
error
{
"code": -1,
"msg": "上传类型不正确"
}
~~~