PUT HYAPI/AssistantService/Account/{id}
修改用户信息------允许操作角色:管理员(Admin)
服务请求信息
URI 参数
Name | Description | Type | Additional information |
---|---|---|---|
id |
待修改的用户ID |
string |
Required |
Body 参数
待修改的用户信息
UserInformationModelName | Description | Type | Additional information |
---|---|---|---|
user_name |
用户姓名 |
string |
Required |
user_company |
所属公司 |
string |
None. |
user_dept |
所属部门 |
string |
None. |
user_pos |
用户职位 |
string |
None. |
user_phone |
用户电话 |
string |
None. |
login_ip |
登陆IP |
string |
None. |
single_user_login |
单一用户登陆 |
boolean |
None. |
on_line |
在线状态 |
boolean |
None. |
user_remark |
用户备注 |
string |
None. |
user_type |
用户类型 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "user_name": "sample string 1", "user_company": "sample string 2", "user_dept": "sample string 3", "user_pos": "sample string 4", "user_phone": "sample string 5", "login_ip": "sample string 6", "single_user_login": true, "on_line": true, "user_remark": "sample string 9", "user_type": "sample string 10" }
application/xml, text/xml
Sample:
<UserInformationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Service.API.Model"> <_x003C_login_ip_x003E_k__BackingField>sample string 6</_x003C_login_ip_x003E_k__BackingField> <_x003C_on_line_x003E_k__BackingField>true</_x003C_on_line_x003E_k__BackingField> <_x003C_single_user_login_x003E_k__BackingField>true</_x003C_single_user_login_x003E_k__BackingField> <_x003C_user_company_x003E_k__BackingField>sample string 2</_x003C_user_company_x003E_k__BackingField> <_x003C_user_dept_x003E_k__BackingField>sample string 3</_x003C_user_dept_x003E_k__BackingField> <_x003C_user_name_x003E_k__BackingField>sample string 1</_x003C_user_name_x003E_k__BackingField> <_x003C_user_phone_x003E_k__BackingField>sample string 5</_x003C_user_phone_x003E_k__BackingField> <_x003C_user_pos_x003E_k__BackingField>sample string 4</_x003C_user_pos_x003E_k__BackingField> <_x003C_user_remark_x003E_k__BackingField>sample string 9</_x003C_user_remark_x003E_k__BackingField> <_x003C_user_type_x003E_k__BackingField>sample string 10</_x003C_user_type_x003E_k__BackingField> </UserInformationModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
服务返回信息
返回数据说明
如果修改不成功则在Message中返回错误信息
ResponseDataModelOfStringName | Description | Type | Additional information |
---|---|---|---|
State |
返回消息状态 |
integer |
None. |
Message |
操作信息 |
string |
None. |
Data |
返回数据 |
string |
None. |
返回数据范例
application/json, text/json
Sample:
{ "State": 1, "Message": "sample string 2", "Data": "sample string 3" }
application/xml, text/xml
Sample:
<ResponseDataModelOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Service.API.Model"> <Data>sample string 3</Data> <Message>sample string 2</Message> <State>1</State> </ResponseDataModelOfstring>