POST api/Agent/MicroApp/EditFarmer/Under/WateringRelationShip
修改某个灌溉关系下农户的信息
Request Information
URI Parameters
None.
Body Parameters
AgentWateringRelationShipFarmerTableItemName | Description | Type | Additional information |
---|---|---|---|
LandArea |
土地面积 numeric(6,2) NN 土地面积,单位亩。 |
decimal number |
Required |
LandName |
土地名称 Varchar(40) 土地名称 |
string |
Max length: 20 |
WaterWeight |
耗水权重 TinyInt NN 单位%,100表示100%,90表示90%。此值用于核算当前户应该支付的水费的权重。 |
byte |
Required |
LandType |
土地类型 Varchar(10) 如“普通旱地”。 |
string |
Max length: 10 |
SerialId |
流量计ID Bigint PK |
integer |
Required |
LandGroupId |
土地组ID Bigint |
integer |
Required |
FarmerId |
农户ID Bigint |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{ "LandArea": 1.0, "LandName": "sample string 2", "WaterWeight": 64, "LandType": "sample string 4", "SerialId": 5, "LandGroupId": 6, "FarmerId": 7 }
application/xml, text/xml
Sample:
<AgentWateringRelationShipFarmerTableItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Flowmeter"> <FarmerId>7</FarmerId> <LandGroupId>6</LandGroupId> <SerialId>5</SerialId> <LandArea>1</LandArea> <LandName>sample string 2</LandName> <LandType>sample string 4</LandType> <WaterWeight>64</WaterWeight> </AgentWateringRelationShipFarmerTableItem>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
修改某个灌溉关系下农户的信息
CommonOperationResultName | Description | Type | Additional 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.