接口:修改头像
接口:修改头像
接口详情
修改头像
zodram api
POST
接口地址
| 正式环境(prod) | https://zodream.cn/open/auth/user/avatar |
|
| 本地环境(dev) | http://zodream.localhost/open/auth/user/avatar |
Header参数
| 字段键 | 字段值 | 备注说明 |
|---|
请求参数
| 字段别名 | 字段含义 | 字段类型 | 是否必填 | 默认值 | 备注说明 |
|---|---|---|---|---|---|
| file | 图片文件 | 对象(object) | 是 |
响应参数
| 字段别名 | 字段含义 | 字段类型 | MOCK规则 | 备注说明 |
|---|---|---|---|---|
| id | id | 数字(number) | ||
| name | name | 字符串(string) | ||
| 字符串(string) | ||||
| sex | sex | 数字(number) | ||
| birthday | birthday | 字符串(string) | ||
| avatar | avatar | 字符串(string) | ||
| money | money | 数字(number) | ||
| created_at | created_at | 字符串(string) | ||
| updated_at | updated_at | 字符串(string) | ||
| sex_label | sex_label | 字符串(string) |
返回示例