POST api/User/EditUserInfo

修改个人资料

Request Information

URI Parameters

None.

Body Parameters

userInfoPost
NameDescriptionTypeAdditional information
id

integer

None.

name

姓名

string

None.

sex

nv = 0,nan = 1,unkonw = 2

integer

None.

age

integer

None.

shengao

decimal number

None.

address

string

None.

shenfenzheng

string

None.

userinfo

个人简介

string

None.

dixin

integer

None.

tel

登录账号

string

None.

token

token

string

None.

uid

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "sex": 3,
  "age": 4,
  "shengao": 5.1,
  "address": "sample string 6",
  "shenfenzheng": "sample string 7",
  "userinfo": "sample string 8",
  "dixin": 9,
  "tel": "sample string 10",
  "token": "sample string 11",
  "uid": 1
}

application/xml, text/xml

Sample:
<userInfoPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
  <tel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 10</tel>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 11</token>
  <uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid>
  <address>sample string 6</address>
  <age>4</age>
  <dixin>9</dixin>
  <id>1</id>
  <name>sample string 2</name>
  <sex>3</sex>
  <shenfenzheng>sample string 7</shenfenzheng>
  <shengao>5.1</shengao>
  <userinfo>sample string 8</userinfo>
</userInfoPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResult
NameDescriptionTypeAdditional information
code

状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在...

integer

None.

msg

成功或者错误的说明,例如:登录成功,token过期...

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "msg": "sample string 2"
}

application/xml, text/xml

Sample:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <code>1</code>
  <msg>sample string 2</msg>
</BaseResult>