POST api/Far/User/Modify

调用存储过程Sp_Far_User_ChangeInfo,修改一个农户的信息。

Request Information

URI Parameters

None.

Body Parameters

Far_UserChangeInfoParm
NameDescriptionTypeAdditional information
UserId

@UserId bigint

integer

Required

Familyname

@Familyname varchar(30) ,-- 姓名

string

Required

Max length: 30

IdentityCode

@IdentityCode char(18) ,--身份证号 IdentityCode char(18)

string

Required

Max length: 18

Min length: 18

Mobile

@Mobile char(11),--手机号 存储过程判断不重复。

string

Required

Max length: 11

Min length: 11

Nation

@Nation Varchar(20),--民族

string

Required

Max length: 20

Province

@Province nvarchar(20),--省

string

Required

Max length: 20

City

@City nvarchar(20) ,--市

string

Required

Max length: 20

County

@County nvarchar(20) ,--县

string

Required

Max length: 20

MailAddress

@MailAddress Varchar(200) ,--地址

string

Required

Max length: 200

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "Familyname": "sample string 2",
  "IdentityCode": "sample string 3",
  "Mobile": "sample string 4",
  "Nation": "sample string 5",
  "Province": "sample string 6",
  "City": "sample string 7",
  "County": "sample string 8",
  "MailAddress": "sample string 9"
}

application/xml, text/xml

Sample:
<Far_UserChangeInfoParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.CleverFarmer.Parm">
  <City>sample string 7</City>
  <County>sample string 8</County>
  <Familyname>sample string 2</Familyname>
  <IdentityCode>sample string 3</IdentityCode>
  <MailAddress>sample string 9</MailAddress>
  <Mobile>sample string 4</Mobile>
  <Nation>sample string 5</Nation>
  <Province>sample string 6</Province>
  <UserId>1</UserId>
</Far_UserChangeInfoParm>

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 'Far_UserChangeInfoParm'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

调用存储过程Sp_Far_User_ChangeInfo,修改一个农户的信息。

CommonOperationResult
NameDescriptionTypeAdditional information
errcode

错误代码,通常0表示成功,其他值表示错误。

integer

None.

errmsg

错误描述,当errcode不为零时,此值可以用于呈现给用户。

string

None.

tag

操作同时,服务器端需要返回的其他值。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": "sample string 3"
}

application/xml, text/xml

Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <tag>sample string 3</tag>
</CommonOperationResult>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.