- 说明
- 首页模块
- 热门推荐
- 搜索模块
- 商品分类
- 商品详情
- 会员登录
- 会员中心-个人信息
- 会员中心-地址管理
- 会员中心-订单管理
- 购物车
- 支付
修改个人信息
PUT
/member/profile
高优先级
请求参数
Header 参数
Authorization
string
必需
示例值:
token
Body 参数application/json
个人信息-修改:请求体参数
nickname
string | null
昵称
gender
enum<string> | enum<null>
性别,男、女、未知
枚举值:
男女
birthday
string | null
可选
profession
string | null
职业
provinceCode
string | null
省份编码
cityCode
string | null
城市编码
countyCode
string | null
区/县编码
示例
{
"nickname": "string",
"gender": "男",
"birthday": "string",
"profession": "string",
"provinceCode": "string",
"cityCode": "string",
"countyCode": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/member/profile' \
--header 'Authorization: token' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
返回结果
msg
string
操作结果
result
object
返回信息
id
string
用户Id
avatar
string
头像
token
string
token
nickname
string
昵称
account
string
账号名称
gender
enum<string>
性别,男、女、未知
枚举值:
男女未知
birthday
string
生日
fullLocation
string
必需
profession
string
职业
示例
{
"msg": "string",
"result": {
"id": "string",
"avatar": "string",
"token": "string",
"nickname": "string",
"account": "string",
"gender": "男",
"birthday": "string",
"fullLocation": "string",
"profession": "string"
}
}
修改于 2023-03-01 08:56:29