POST api/admin/user/update
【管理员】【用户管理】修改
Request Information
URI Parameters
None.
Body Parameters
用户新增/修改请求参数
AdminUserUpdateRequst| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
用户ID(新增时为空,修改时必填) |
string |
Max length: 50 |
| username |
用户名(手机号,11位字符;选填) |
string |
Matching regular expression pattern: ^\d{11}$ |
| password |
密码(选填) |
string |
Max length: 50 |
| wxOpenid |
微信OpenID(选填) |
string |
Max length: 50 |
| wxNickname |
微信昵称(选填) |
string |
Max length: 100 |
| wxHeadurl |
微信头像URL(选填) |
string |
Max length: 300 |
| wxProvince |
微信省份(选填) |
string |
Max length: 50 |
| wxCity |
微信城市(选填) |
string |
Max length: 50 |
| wxSex |
微信性别(1-男,2-女,0-未知;选填) |
string |
Matching regular expression pattern: ^[012]$ Max length: 1 |
| meMobile |
手机号(选填) |
string |
Max length: 50 |
| meName |
真实姓名(选填) |
string |
Max length: 50 |
| meSex |
性别(选填) |
string |
Max length: 50 |
| status |
用户状态(必填) |
integer |
Required |
| role |
角色(必填) |
integer |
Required |
| more |
扩展信息(选填) |
string |
Max length: 300 |
Request Formats
application/json, text/json
Sample:
{
"id": "sample string 1",
"username": "sample string 2",
"password": "sample string 3",
"wxOpenid": "sample string 4",
"wxNickname": "sample string 5",
"wxHeadurl": "sample string 6",
"wxProvince": "sample string 7",
"wxCity": "sample string 8",
"wxSex": "sample string 9",
"meMobile": "sample string 10",
"meName": "sample string 11",
"meSex": "sample string 12",
"status": 13,
"role": 14,
"more": "sample string 15"
}
Response Information
Resource Description
【管理员】【用户管理】修改
MyResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| code | integer |
None. |
|
| msg | string |
None. |
|
| data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"msg": "sample string 2",
"data": {}
}