POST api/SleepSum/GetUserInfo

获取用户主页信息

Request Information

URI Parameters

None.

Body Parameters

GetUserInfoReq
NameDescriptionTypeAdditional information
getUid

需要获取信息的用户id

string

None.

uid

当前用户id

string

None.

pid

integer

None.

version

string

None.

imei

string

None.

system

string

None.

token

string

None.

language

string

None.

timeZone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "getUid": "sample string 1",
  "uid": "sample string 2",
  "pid": 3,
  "version": "sample string 4",
  "imei": "sample string 5",
  "system": "sample string 6",
  "token": "sample string 7",
  "language": "sample string 8",
  "timeZone": "sample string 9"
}

application/xml, text/xml

Sample:
<GetUserInfoReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <imei xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 5</imei>
  <language xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 8</language>
  <pid xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">3</pid>
  <system xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 6</system>
  <timeZone xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 9</timeZone>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 7</token>
  <version xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 4</version>
  <getUid>sample string 1</getUid>
  <uid>sample string 2</uid>
</GetUserInfoReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetUserInfoRes
NameDescriptionTypeAdditional information
nickName

string

None.

userCode

string

None.

uid

string

None.

coverImg

封面图片

string

None.

coverLikeCount

封面点赞数

integer

None.

isLikeCover

是否对封面点过赞

integer

None.

likeCount

用户被点赞数

integer

None.

sex

性别

integer

None.

birthday

生日

string

None.

signature

个性签名

string

None.

province

省份

string

None.

city

城市

string

None.

iconfile

头像url地址

string

None.

medals

用户勋章

Collection of Medal

None.

medal

用户使用的勋章

Medal

None.

isFollow

是否关注,1为关注,0为未关注

integer

None.

followSum

用户关注数

string

None.

followedSum

用户粉丝数

string

None.

likedSum

用户获赞数

string

None.

isVip

用户是否是vip,1为是,0为不是

integer

None.

Message

消息

string

None.

Status

状态,默认情况下,1为成功。0为失败。99为权限验证失败。

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "nickName": "sample string 1",
  "userCode": "sample string 2",
  "uid": "sample string 3",
  "coverImg": "sample string 4",
  "coverLikeCount": 5,
  "isLikeCover": 6,
  "likeCount": 7,
  "sex": 8,
  "birthday": "sample string 9",
  "signature": "sample string 10",
  "province": "sample string 11",
  "city": "sample string 12",
  "iconfile": "sample string 13",
  "medals": [
    {
      "id": 1,
      "name": "sample string 2",
      "description": "sample string 3",
      "getImgUrl": "sample string 4",
      "noGetImgUrl": "sample string 5",
      "type": 6,
      "level": 7,
      "isGet": 8,
      "headUrl": "sample string 9"
    },
    {
      "id": 1,
      "name": "sample string 2",
      "description": "sample string 3",
      "getImgUrl": "sample string 4",
      "noGetImgUrl": "sample string 5",
      "type": 6,
      "level": 7,
      "isGet": 8,
      "headUrl": "sample string 9"
    }
  ],
  "medal": {
    "id": 1,
    "name": "sample string 2",
    "description": "sample string 3",
    "getImgUrl": "sample string 4",
    "noGetImgUrl": "sample string 5",
    "type": 6,
    "level": 7,
    "isGet": 8,
    "headUrl": "sample string 9"
  },
  "isFollow": 14,
  "followSum": "sample string 15",
  "followedSum": "sample string 16",
  "likedSum": "sample string 17",
  "isVip": 18,
  "Message": "sample string 19",
  "Status": 20
}

application/xml, text/xml

Sample:
<GetUserInfoRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <Message xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 19</Message>
  <Status xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">20</Status>
  <birthday>sample string 9</birthday>
  <city>sample string 12</city>
  <coverImg>sample string 4</coverImg>
  <coverLikeCount>5</coverLikeCount>
  <followSum>sample string 15</followSum>
  <followedSum>sample string 16</followedSum>
  <iconfile>sample string 13</iconfile>
  <isFollow>14</isFollow>
  <isLikeCover>6</isLikeCover>
  <isVip>18</isVip>
  <likeCount>7</likeCount>
  <likedSum>sample string 17</likedSum>
  <medal xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Help">
    <d2p1:description>sample string 3</d2p1:description>
    <d2p1:getImgUrl>sample string 4</d2p1:getImgUrl>
    <d2p1:headUrl>sample string 9</d2p1:headUrl>
    <d2p1:id>1</d2p1:id>
    <d2p1:isGet>8</d2p1:isGet>
    <d2p1:level>7</d2p1:level>
    <d2p1:name>sample string 2</d2p1:name>
    <d2p1:noGetImgUrl>sample string 5</d2p1:noGetImgUrl>
    <d2p1:type>6</d2p1:type>
  </medal>
  <medals xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Help">
    <d2p1:Medal>
      <d2p1:description>sample string 3</d2p1:description>
      <d2p1:getImgUrl>sample string 4</d2p1:getImgUrl>
      <d2p1:headUrl>sample string 9</d2p1:headUrl>
      <d2p1:id>1</d2p1:id>
      <d2p1:isGet>8</d2p1:isGet>
      <d2p1:level>7</d2p1:level>
      <d2p1:name>sample string 2</d2p1:name>
      <d2p1:noGetImgUrl>sample string 5</d2p1:noGetImgUrl>
      <d2p1:type>6</d2p1:type>
    </d2p1:Medal>
    <d2p1:Medal>
      <d2p1:description>sample string 3</d2p1:description>
      <d2p1:getImgUrl>sample string 4</d2p1:getImgUrl>
      <d2p1:headUrl>sample string 9</d2p1:headUrl>
      <d2p1:id>1</d2p1:id>
      <d2p1:isGet>8</d2p1:isGet>
      <d2p1:level>7</d2p1:level>
      <d2p1:name>sample string 2</d2p1:name>
      <d2p1:noGetImgUrl>sample string 5</d2p1:noGetImgUrl>
      <d2p1:type>6</d2p1:type>
    </d2p1:Medal>
  </medals>
  <nickName>sample string 1</nickName>
  <province>sample string 11</province>
  <sex>8</sex>
  <signature>sample string 10</signature>
  <uid>sample string 3</uid>
  <userCode>sample string 2</userCode>
</GetUserInfoRes>