POST api/ClientApp/profile/user_info/update
[已完成] 修改个人资料
Request Information
URI Parameters
None.
Body Parameters
UserInfoUpdateRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| nick_name |
昵称 |
string |
None. |
|
邮箱,邮箱可以为空,但如果填写,必须符合邮箱格式 |
string |
Matching regular expression pattern: ^$|^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$ |
|
| TG_id |
TG号 |
string |
None. |
| clientType |
客户端类型,默认值:website |
string |
None. |
| clientVersion |
客户端版本,默认值:1.0.0 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"nick_name": "sample string 1",
"email": "sample string 2",
"TG_id": "sample string 3",
"clientType": "sample string 4",
"clientVersion": "sample string 5"
}
Response Information
Resource Description
UserInfoUpdateResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| code |
1 为成功,其他为失败 |
integer |
None. |
| msg |
请求描述 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"msg": "sample string 2"
}