POST api/User/PostUserInfo
根据ID获取用户信息
Request Information
URI Parameters
None.
Body Parameters
baseUserPost| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
用户id |
integer |
None. |
| tel |
登录账号 |
string |
None. |
| token |
token |
string |
None. |
| uid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"tel": "sample string 2",
"token": "sample string 3",
"uid": 1
}
application/xml, text/xml
Sample:
<baseUserPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models"> <tel>sample string 2</tel> <token>sample string 3</token> <uid>1</uid> <id>1</id> </baseUserPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
UserInfoResturn| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| name | string |
None. |
|
| sex |
性别,0:女性,1:男性,2:未知 |
byte |
None. |
| age | integer |
None. |
|
| headimgurl | string |
None. |
|
| lastweekamount |
上周销售额 |
decimal number |
None. |
| lastmonthamount |
上月业绩 |
decimal number |
None. |
| planamount |
本周计划销售额 |
decimal number |
None. |
| tel | string |
None. |
|
| shengao | decimal number |
None. |
|
| shenfenzheng | string |
None. |
|
| gongling | integer |
None. |
|
| address | string |
None. |
|
| userinfo | string |
None. |
|
| shenfenzhenglist | 数组: string |
None. |
|
| groupname | string |
None. |
|
| groupid | integer |
None. |
|
| roleId | integer |
None. |
|
| roleName | string |
None. |
|
| photolist | 数组: string |
None. |
|
| dakaDays |
共计打卡天数 |
integer |
None. |
| teamdays |
加入团队天数 |
integer |
None. |
| xuexiImgArr | 数组: string |
None. |
|
| dixin | integer |
None. |
|
| code |
状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在... |
integer |
None. |
| msg |
成功或者错误的说明,例如:登录成功,token过期... |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 2",
"sex": 64,
"age": 1,
"headimgurl": "sample string 4",
"lastweekamount": 5.0,
"lastmonthamount": 6.0,
"planamount": 7.0,
"tel": "sample string 8",
"shengao": 1.1,
"shenfenzheng": "sample string 9",
"gongling": 10,
"address": "sample string 11",
"userinfo": "sample string 12",
"shenfenzhenglist": [
"sample string 1",
"sample string 2"
],
"groupname": "sample string 13",
"groupid": 14,
"roleId": 15,
"roleName": "sample string 16",
"photolist": [
"sample string 1",
"sample string 2"
],
"dakaDays": 17,
"teamdays": 18,
"xuexiImgArr": [
"sample string 1",
"sample string 2"
],
"dixin": 19,
"code": 20,
"msg": "sample string 21"
}
application/xml, text/xml
Sample:
<UserInfoResturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
<code xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">20</code>
<msg xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 21</msg>
<address>sample string 11</address>
<age>1</age>
<dakaDays>17</dakaDays>
<dixin>19</dixin>
<gongling>10</gongling>
<groupid>14</groupid>
<groupname>sample string 13</groupname>
<headimgurl>sample string 4</headimgurl>
<id>1</id>
<lastmonthamount>6</lastmonthamount>
<lastweekamount>5</lastweekamount>
<name>sample string 2</name>
<photolist xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</photolist>
<planamount>7</planamount>
<roleId>15</roleId>
<roleName>sample string 16</roleName>
<sex>64</sex>
<shenfenzheng>sample string 9</shenfenzheng>
<shenfenzhenglist xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</shenfenzhenglist>
<shengao>1.1</shengao>
<teamdays>18</teamdays>
<tel>sample string 8</tel>
<userinfo>sample string 12</userinfo>
<xuexiImgArr xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</xuexiImgArr>
</UserInfoResturn>