POST manage/user
添加用户
Request Information
URI Parameters
None.
Body Parameters
UserModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Userid | integer |
None. |
|
| Name |
用户名称 |
string |
None. |
| RealName |
真实姓名 |
string |
None. |
| Headimgurl |
头像URL |
string |
None. |
| Type |
admintype 表的ID,管理员类型 |
integer |
None. |
| State |
禁用 解禁 用户 0表示正常用户 1禁用帐号 |
integer |
None. |
| Password |
密码 MD5 |
string |
None. |
| Version |
客户端版本号 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Userid": 1,
"Name": "sample string 2",
"RealName": "sample string 3",
"Headimgurl": "sample string 4",
"Type": 5,
"State": 6,
"Password": "sample string 7",
"Version": "sample string 8"
}
application/xml, text/xml
Sample:
<UserModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIVenueAPI.Models"> <Password>sample string 7</Password> <Version>sample string 8</Version> <Headimgurl>sample string 4</Headimgurl> <Name>sample string 2</Name> <RealName>sample string 3</RealName> <State>6</State> <Type>5</Type> <Userid>1</Userid> </UserModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.