POST api/Web/User/ChangeInfo
修改个人用户的信息。
Request Information
URI Parameters
None.
Body Parameters
修改的信息,WebUserInfoParm.userid参数值在此时传入没有意义,只能修改当前用户的信息;WebUserInfoParm.mobile、WebUserInfoParm.status、WebUserInfoParm.disabledate、WebUserInfoParm.password参数此时传入没有意义,当前API不能修改上述信息。
WebUserInfoParm| Name | Description | Type | Additional information |
|---|---|---|---|
| userid |
会员代码 |
integer |
None. |
| username |
用户名 |
string |
Required Max length: 20 |
| mobile |
手机 |
string |
Required Max length: 11 |
| fname |
姓名 |
string |
Max length: 60 |
| sex |
性别M男,W女 |
string |
Max length: 1 |
| certificatetype |
证件类型 Char(1) 1 二代居民身份证2 军官证,士兵证3 护照 4 其他 |
string |
Max length: 1 |
| certificatecode |
身份证号 |
string |
Max length: 20 |
| nation |
民族 Varchar(20) |
string |
Max length: 20 |
| address |
地址 Varchar(200) |
string |
Max length: 200 |
| status |
状态 Char(1) 1正常, 3已禁用 |
string |
Max length: 1 |
| disabledate |
禁用日期 YYYYMMDD |
string |
Max length: 8 |
|
EMAIL Varchar(60) |
string |
Max length: 60 |
|
| regdate |
注册日期时间 char(14) YYYYMMDDHHmmss |
string |
Max length: 14 |
| reserve1 |
保留一 |
string |
Max length: 50 |
| reserve2 |
保留2 |
string |
Max length: 50 |
| reserve3 |
保留3 |
string |
Max length: 50 |
| password |
密码的密文:TripleDes(UPPER_MD5(登陆密码),GetKeys(HAWK认证KEY)) 当前类的实例用于更新用户信息时,此属性无效(没有任何用途)。 |
string |
None. |
Request Formats
application/json, text/json
{
"userid": 1,
"username": "sample string 2",
"mobile": "sample string 3",
"fname": "sample string 4",
"sex": "sample string 5",
"certificatetype": "sample string 6",
"certificatecode": "sample string 7",
"nation": "sample string 8",
"address": "sample string 9",
"status": "sample string 10",
"disabledate": "sample string 11",
"email": "sample string 12",
"regdate": "sample string 13",
"reserve1": "sample string 14",
"reserve2": "sample string 15",
"reserve3": "sample string 16",
"password": "sample string 17"
}
application/xml, text/xml
<WebUserInfoParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Dosimeter"> <address>sample string 9</address> <certificatecode>sample string 7</certificatecode> <certificatetype>sample string 6</certificatetype> <disabledate>sample string 11</disabledate> <email>sample string 12</email> <fname>sample string 4</fname> <mobile>sample string 3</mobile> <nation>sample string 8</nation> <password>sample string 17</password> <regdate>sample string 13</regdate> <reserve1>sample string 14</reserve1> <reserve2>sample string 15</reserve2> <reserve3>sample string 16</reserve3> <sex>sample string 5</sex> <status>sample string 10</status> <userid>1</userid> <username>sample string 2</username> </WebUserInfoParm>
application/x-www-form-urlencoded
Sample not available.
application/bson
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
修改个人用户的信息。
CommonOperationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
| errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
string |
None. |
| tag |
操作同时,服务器端需要返回的其他值。 |
string |
None. |
Response Formats
application/json, text/json
{
"errcode": 1,
"errmsg": "sample string 2",
"tag": "sample string 3"
}
application/xml, text/xml
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag>sample string 3</tag> </CommonOperationResult>
application/bson
Binary JSON content. See http://bsonspec.org for details.