POST api/UserInfoV770/Update

更新用户信息

Request Information

URI Parameters

None.

Body Parameters

ZaiMieApp.WebApi.ViewModel.UserInfoView
NameDescriptionTypeAdditional information
Id

integer

None.

nickname

昵称

string

None.

userName

string

None.

headerImage

头像

string

None.

backgroundImage

个人空间背景

string

None.

sex

性别

integer

None.

loginSession

校验session

string

None.

userDesc

个性简介

string

None.

score

积分

integer

None.

birthday

生日

string

None.

city

城市编号

integer

None.

cityName

城市名

string

None.

constellation

星座

string

None.

age

年龄

integer

None.

phone

手机号

string

None.

audit

用户审核模型

ZaiMieApp.WebApi.ViewModel.AuditModel

None.

userCommunity

所属社区

ZaiMieApp.WebApi.ViewModel.UserCommunity

None.

userType

用户类型 0-普通用户 1-认证用户 2-商家用户

integer

None.

realName

真实姓名

string

None.

idcard

身份证

string

None.

registerTime

注册时间

string

None.

isNewUser

是否刚注册的用户

boolean

None.

profile

1-话题主

integer

None.

organizationUser

1-组织机构用户

integer

None.

commentatorUser

1-评论员用户

integer

None.

talentAccount

1-达人号

integer

None.

sign

string

None.

stamp

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "nickname": "sample string 2",
  "userName": "sample string 3",
  "headerImage": "sample string 4",
  "backgroundImage": "sample string 5",
  "sex": 6,
  "loginSession": "sample string 7",
  "userDesc": "sample string 8",
  "score": 9,
  "birthday": "sample string 10",
  "city": 11,
  "cityName": "sample string 12",
  "constellation": "sample string 13",
  "age": 14,
  "phone": "sample string 15",
  "audit": {
    "isNickNameAudit": true,
    "isHeaderImageAudit": true,
    "isBackgroundImageAudit": true
  },
  "userCommunity": {
    "communityId": 1,
    "communityName": "sample string 2",
    "streetId": 3,
    "streetName": "sample string 4",
    "countyId": 5,
    "countyName": "sample string 6"
  },
  "userType": 16,
  "realName": "sample string 17",
  "idcard": "sample string 18",
  "registerTime": "sample string 19",
  "isNewUser": true,
  "profile": 21,
  "organizationUser": 22,
  "commentatorUser": 23,
  "talentAccount": 24,
  "sign": "sample string 25",
  "stamp": "sample string 26"
}

application/xml, text/xml

Sample:
<UserInfoView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <sign>sample string 25</sign>
  <stamp>sample string 26</stamp>
  <Id>1</Id>
  <age>14</age>
  <audit>
    <isBackgroundImageAudit>true</isBackgroundImageAudit>
    <isHeaderImageAudit>true</isHeaderImageAudit>
    <isNickNameAudit>true</isNickNameAudit>
  </audit>
  <backgroundImage>sample string 5</backgroundImage>
  <birthday>sample string 10</birthday>
  <city>11</city>
  <cityName>sample string 12</cityName>
  <commentatorUser>23</commentatorUser>
  <constellation>sample string 13</constellation>
  <headerImage>sample string 4</headerImage>
  <idcard>sample string 18</idcard>
  <isNewUser>true</isNewUser>
  <loginSession>sample string 7</loginSession>
  <nickname>sample string 2</nickname>
  <organizationUser>22</organizationUser>
  <phone>sample string 15</phone>
  <profile>21</profile>
  <realName>sample string 17</realName>
  <registerTime>sample string 19</registerTime>
  <score>9</score>
  <sex>6</sex>
  <talentAccount>24</talentAccount>
  <userCommunity>
    <communityId>1</communityId>
    <communityName>sample string 2</communityName>
    <countyId>5</countyId>
    <countyName>sample string 6</countyName>
    <streetId>3</streetId>
    <streetName>sample string 4</streetName>
  </userCommunity>
  <userDesc>sample string 8</userDesc>
  <userName>sample string 3</userName>
  <userType>16</userType>
</UserInfoView>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ZaiMieApp.WebApi.ViewModel.ResultMsg
NameDescriptionTypeAdditional information
success

boolean

None.

code

integer

None.

addcoin

赠送的金币

integer

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "code": 2,
  "addcoin": 3,
  "message": "sample string 4"
}

application/xml, text/xml

Sample:
<ResultMsg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <addcoin>3</addcoin>
  <code>2</code>
  <message>sample string 4</message>
  <success>true</success>
</ResultMsg>