1.URL
http://124.223.60.234:8080/system/asset/fence/queryFenceListByTerminalId
2.请求参数
2.1请求头
在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId
2.2.参数示例
{
"terminalId": "2C44E916096F4A26A94DFFC1387DBC51"
}
2.3.参数说明
| 字段 | 类型 | 说明 | 是否必须 |
|---|---|---|---|
| terminalId | String | 围栏唯一标识 | Y |
3.接口应答
3.1.返回示例
{
"code": 200,
"message": "Operation succeeded",
"data": [
{
"id": "046E90510AB644AF946F6F55E94C47F8",
"orgId": "68F3D9852D6D44C0A0F642C540C6BB3D",
"orgName": "Barry ",
"typeId": "980028494CA94946BF9C2A0471B7E24C",
"fenceType": {
"id": "980028494CA94946BF9C2A0471B7E24C",
"name": "Apollo customers",
"icon": 14,
"strokeColor": "rgba(54, 108, 200, 1)",
"fillColor": "rgba(54, 108, 200, 0.6)"
},
"name": "David",
"code": "",
"formType": 2,
"centerLat": 49.192841,
"centerLon": -122.771339,
"radius": 50,
"path": "[]",
"address": "10482, Glenbrook Grove, Fraser Heights, Surrey, Metro Vancouver Regional District, British Columbia, V4N, Canada",
"area": 0.008,
"status": 1,
"descInfo": "",
"createTime": "2023-09-21 10:41:52",
"creator": "854E28EB90D14C169029A86309348D37"
},
{
"id": "0166F95A869D4CFEAFF227F41FD0E082",
"orgId": "E86CB5248B36484E924AA0A97783B767",
"orgName": "TEST",
"typeId": "A87A7AB339A64C6EBC85719E03F08BF3",
"fenceType": {
"id": "A87A7AB339A64C6EBC85719E03F08BF3",
"name": "Test",
"icon": 6,
"strokeColor": "rgba(54, 108, 200, 1)",
"fillColor": "rgba(54, 108, 200, 0.6)"
},
"name": "海谷",
"code": "1",
"formType": 1,
"centerLat": 22.669209,
"centerLon": 113.922165,
"radius": 0,
"path": "[{\"lat\":22.67169156,\"lon\":113.92053704},{\"lat\":22.66736131,\"lon\":113.92033695},{\"lat\":22.66695381,\"lon\":113.92375009},{\"lat\":22.67068537,\"lon\":113.92418861},{\"lat\":22.67169156,\"lon\":113.92053704}]",
"address": "广东省深圳市宝安区宝华路 明金海工业园内,深圳市宝安区石岩亚泰五金经营部西北165米",
"area": 0.165,
"status": 1,
"descInfo": "",
"createTime": "2023-07-21 05:42:39",
"creator": "F940B79790004404AAC277418FC71C5D"
}
]
}
3.2.返回结果说明
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 返回状态 |
| message | String | 返回结果描述 |
| data | object | 返回结果体 |
data说明
| 字段 | 类型 | 说明 |
|---|---|---|
| id | String | 围栏唯一标识 |
| orgId | String | 公司唯一标识 |
| orgName | String | 公司名称 |
| typeId | String | 围栏类型ID |
| fenceType | Object | 围栏分类实体 |
| name | String | 围栏名称 |
| code | String | 围栏编码 |
| formType | int | 围栏类型(1:多边形;2:圆形;3:路线) |
| centerLat | double | 中心点纬度 |
| centerLon | double | 中心点经度 |
| radius | int | 围栏半径/路线围栏的宽度,单位m;如果圆形则此值有效 |
| path | String | 围栏点集合 |
| address | String | 围栏地址 |
| area | double | 围栏面积 |
| status | int | 0:禁用;1:启用 |
| descInfo | String | 描述 |
| createTime | String | 创建时间 |
| creatorId | String | 创建用户唯一标识 |
fenceType说明
| 字段 | 类型 | 说明 |
|---|---|---|
| id | String | 围栏类型唯一标识 |
| name | String | 围栏类型名称 |
| icon | int | 围栏类型图标 |
| strokeColor | String | 边框颜色 |
| fillColor | String | 填充色 |
4.请求示例

Author:admin Create time:2023-10-24 10:39
Last editor:admin Update time:2025-10-31 14:50
Last editor:admin Update time:2025-10-31 14:50