POST api/Farmer/MicroApp/GroupLeader/ApplyWatering/Lanuch
在农户小程序中,组长发起一个灌溉申请
Request Information
URI Parameters
None.
Body Parameters
FarmerGroupLeaderApplyWateringLaunchItemName | Description | Type | Additional information |
---|---|---|---|
GroupLeaderId |
组长ID bigint |
integer |
Required |
SerialId |
流量计ID bigint |
integer |
Required |
AgentId |
运营商ID bigint |
integer |
Required |
LandGroupId |
组的ID bigint |
integer |
Required |
StartTime |
开始灌溉时间 char(12) |
string |
Required |
WateringTradeId |
灌溉交易ID bigint |
integer |
None. |
RequestType |
业务类型 char(1) '1'灌溉 '2'停止灌溉 |
string |
Required |
LandList |
灌溉土地明细 T_Parm_FarmerLand Readonly |
Collection of AgentParmFarmerLandItem |
None. |
Request Formats
application/json, text/json
Sample:
{ "GroupLeaderId": 1, "SerialId": 2, "AgentId": 3, "LandGroupId": 4, "StartTime": "sample string 5", "WateringTradeId": 6, "RequestType": "sample string 7", "LandList": [ { "FarmerId": 1, "LandArea": 2.0, "WaterWeight": 64 }, { "FarmerId": 1, "LandArea": 2.0, "WaterWeight": 64 } ] }
application/xml, text/xml
Sample:
<FarmerGroupLeaderApplyWateringLaunchItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Flowmeter"> <AgentId>3</AgentId> <GroupLeaderId>1</GroupLeaderId> <LandGroupId>4</LandGroupId> <LandList> <AgentParmFarmerLandItem> <FarmerId>1</FarmerId> <LandArea>2</LandArea> <WaterWeight>64</WaterWeight> </AgentParmFarmerLandItem> <AgentParmFarmerLandItem> <FarmerId>1</FarmerId> <LandArea>2</LandArea> <WaterWeight>64</WaterWeight> </AgentParmFarmerLandItem> </LandList> <RequestType>sample string 7</RequestType> <SerialId>2</SerialId> <StartTime>sample string 5</StartTime> <WateringTradeId>6</WateringTradeId> </FarmerGroupLeaderApplyWateringLaunchItem>
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.