Appearance
Query AOI With Order Count
API Information
- Request Path:
/market/aoi/queryWithOrderCount - Request Method:
POST - Content-Type:
application/json
Request Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | User authentication token |
| Content-Type | String | Yes | Must be set to application/json |
Request Body Structure
None required.
Request Body Example
json
{}Response Body Structure
CommonResponse Object
| Field | Type | Description |
|---|---|---|
| code | Integer | Response status code |
| message | String | Response message |
| data | AoiOrderCountResp | Response data |
AoiOrderCountResp Object
| Field | Type | Description |
|---|---|---|
| content | List<AoiOrderCountRespItem> | AOI list with order count |
AoiOrderCountRespItem Object
| Field | Type | Description |
|---|---|---|
| id | Long | AOI ID |
| name | String | AOI name |
| geoAoi | String | AOI geometry (EWKT) |
| area | String | AOI area |
| lngLat | String | AOI longitude and latitude |
| isGroup | Integer | Group flag |
| parentId | Long | Parent group ID |
| orderCount | Long | Bound order count |
Response Examples
Success Response
json
{
"code": 200,
"message": "success",
"data": {
"content": [
{
"id": 1001,
"name": "AOI-1",
"geoAoi": "POLYGON((...))",
"area": "120.5",
"lngLat": "24.3172°N 54.5365°E",
"isGroup": 0,
"parentId": 1000,
"orderCount": 3
}
]
}
}Failure Response
json
{
"code": 400,
"message": "Invalid parameters",
"data": null
}Error Code Description
| Error Code | Description |
|---|---|
| 200 | Success |
| 400 | Request parameter error |
| 401 | Unauthorized |
| 500 | Server internal error |
Usage Instructions
- This API is used to query AOI list with bound order count for current user.
- User authentication is required.
- Returns all AOIs without pagination.
Notes
orderCountis the number of orders associated with each AOI.