POST api/My/saveUser

更新用户信息

Request Information

URI Parameters

None.

Body Parameters

MyModel
NameDescriptionTypeAdditional information
userid

integer

None.

name

string

None.

userRole

integer

None.

userType

integer

None.

mobile

string

None.

jobs

string

None.

credit

integer

None.

avatar

string

None.

avatarUrl

string

None.

nickName

string

None.

address

string

None.

province

string

None.

county

string

None.

city

string

None.

companyid

integer

None.

company

string

None.

area

string

None.

areaText

string

None.

Sex

integer

None.

isEnroll

门票是否办理登记

boolean

None.

industry

string

None.

time

string

None.

Request Formats

application/json, text/json

Sample:
{
  "userid": 1,
  "name": "sample string 2",
  "userRole": 3,
  "userType": 4,
  "mobile": "sample string 5",
  "jobs": "sample string 6",
  "credit": 7,
  "avatar": "sample string 8",
  "avatarUrl": "sample string 9",
  "nickName": "sample string 10",
  "address": "sample string 11",
  "province": "sample string 12",
  "county": "sample string 13",
  "city": "sample string 14",
  "companyid": 15,
  "company": "sample string 16",
  "area": "sample string 17",
  "areaText": "sample string 18",
  "Sex": 19,
  "isEnroll": true,
  "industry": "sample string 21",
  "time": "sample string 22"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MyModel'.

Response Information

Resource Description

更新用户信息

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.