GET api/Agent/Platform/Farmer/T/ById?farmerid={farmerid}
依据农户的ID,查询单行农户的信息,并以简单参数类型返回
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
farmerid |
农户的ID,必填,等于。 |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
依据农户的ID,查询单行农户的信息,并以简单参数类型返回
CommonOperationResultWithTagOfPlatformFarmerTableItemName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | PlatformFarmerTableItem |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "FarmerId": 1, "FarmerName": "sample string 2", "IDNumber": "sample string 3", "IDName": "sample string 4", "Mobile": "sample string 5", "Province": "sample string 6", "City": "sample string 7", "County": "sample string 8", "Address": "sample string 9", "Longitude": 1.0, "Latitude": 1.0, "LastestUpdAgentId": 10, "LastestUpdTime": "sample string 11" } }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfPlatformFarmerTableItemwlCnhfv3 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 xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Flowmeter"> <d2p1:Address>sample string 9</d2p1:Address> <d2p1:City>sample string 7</d2p1:City> <d2p1:County>sample string 8</d2p1:County> <d2p1:FarmerId>1</d2p1:FarmerId> <d2p1:FarmerName>sample string 2</d2p1:FarmerName> <d2p1:IDName>sample string 4</d2p1:IDName> <d2p1:IDNumber>sample string 3</d2p1:IDNumber> <d2p1:LastestUpdAgentId>10</d2p1:LastestUpdAgentId> <d2p1:LastestUpdTime>sample string 11</d2p1:LastestUpdTime> <d2p1:Latitude>1</d2p1:Latitude> <d2p1:Longitude>1</d2p1:Longitude> <d2p1:Mobile>sample string 5</d2p1:Mobile> <d2p1:Province>sample string 6</d2p1:Province> </tag> </CommonOperationResultWithTagOfPlatformFarmerTableItemwlCnhfv3>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.