GET api/Agent/MicroApp/Platform/Farmer/WithPage?pageindex={pageindex}
获取当前水管理员有关联的农户用户清单,以不计页数的分页的简单类型返回。 与当前水管理员有关是指与当前水管理员有管辖权的流量计存在灌溉关系。
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| pageindex |
页序号,小于等于1均为第一页,页的大小是固定数值。 |
integer |
Default value is 1 |
Body Parameters
None.
Response Information
Resource Description
获取当前水管理员有关联的农户用户清单,以不计页数的分页的简单类型返回。 与当前水管理员有关是指与当前水管理员有管辖权的流量计存在灌溉关系。
CommonOperationResultWithTagOfSimplePageDataWithNoCountResultOfPlatformFarmerTableItem| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode | integer |
None. |
|
| errmsg | string |
None. |
|
| tag | SimplePageDataWithNoCountResultOfPlatformFarmerTableItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"tag": {
"pageIndex": 1,
"pageSize": 2,
"hasMorePages": "sample string 3",
"records": [
{
"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"
},
{
"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:
<CommonOperationResultWithTagOfSimplePageDataWithNoCountResultOfPlatformFarmerTableItemwlCnhfv3rCdCJ3eC 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>
<hasMorePages>sample string 3</hasMorePages>
<pageIndex>1</pageIndex>
<pageSize>2</pageSize>
<records xmlns:d3p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Flowmeter">
<d3p1:PlatformFarmerTableItem>
<d3p1:Address>sample string 9</d3p1:Address>
<d3p1:City>sample string 7</d3p1:City>
<d3p1:County>sample string 8</d3p1:County>
<d3p1:FarmerId>1</d3p1:FarmerId>
<d3p1:FarmerName>sample string 2</d3p1:FarmerName>
<d3p1:IDName>sample string 4</d3p1:IDName>
<d3p1:IDNumber>sample string 3</d3p1:IDNumber>
<d3p1:LastestUpdAgentId>10</d3p1:LastestUpdAgentId>
<d3p1:LastestUpdTime>sample string 11</d3p1:LastestUpdTime>
<d3p1:Latitude>1</d3p1:Latitude>
<d3p1:Longitude>1</d3p1:Longitude>
<d3p1:Mobile>sample string 5</d3p1:Mobile>
<d3p1:Province>sample string 6</d3p1:Province>
</d3p1:PlatformFarmerTableItem>
<d3p1:PlatformFarmerTableItem>
<d3p1:Address>sample string 9</d3p1:Address>
<d3p1:City>sample string 7</d3p1:City>
<d3p1:County>sample string 8</d3p1:County>
<d3p1:FarmerId>1</d3p1:FarmerId>
<d3p1:FarmerName>sample string 2</d3p1:FarmerName>
<d3p1:IDName>sample string 4</d3p1:IDName>
<d3p1:IDNumber>sample string 3</d3p1:IDNumber>
<d3p1:LastestUpdAgentId>10</d3p1:LastestUpdAgentId>
<d3p1:LastestUpdTime>sample string 11</d3p1:LastestUpdTime>
<d3p1:Latitude>1</d3p1:Latitude>
<d3p1:Longitude>1</d3p1:Longitude>
<d3p1:Mobile>sample string 5</d3p1:Mobile>
<d3p1:Province>sample string 6</d3p1:Province>
</d3p1:PlatformFarmerTableItem>
</records>
</tag>
</CommonOperationResultWithTagOfSimplePageDataWithNoCountResultOfPlatformFarmerTableItemwlCnhfv3rCdCJ3eC>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.