[TOC=2]
## 枚举变量
### 上传文件类型:( type )
| 可选值 | 说明 |
| --- | --- |
| banner | 广告图 |
| service_item | 服务项目 |
## 个人资料
~~~[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": "https://pengdada-test.oss-cn-hangzhou.aliyuncs.com",
"policy": "eyJleHBpcmF0aW9uIjoiMjAxOC0wMy0xNVQxODozNjo1OVoiLCJjb25kaXRpb25zIjpbWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsMCwxMDQ4NTc2MF0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJhZG1pblwvY2F0ZWdvcnkiXV19",
"signature": "FWOg0lwfga+OGdx5Z9rasEzRIYg=",
"expire": 1521110219,
"dir": "admin/category",
"max_size": 10485760
}
}
<<<
error
{
"code": -1,
"msg": "上传类型不正确"
}
~~~