简要描述
服务端发布主题
服务端发布给软件的参数
注:Route 值 为 SentryHostQuery
参数 |
类型 |
参数名 |
是否必填 |
描述 |
说明 |
ParkKey |
body |
string |
yes |
停车场编号 |
本地停车场编号 |
AppId |
body |
string |
yes |
应用服务标识 |
本地停车场应用服务标识 |
TimeStamp |
body |
string |
yes |
时间戳 |
时间戳13位,精确到毫秒 |
Nonce |
body |
string |
yes |
随机字符串 |
随机字符串 |
RequestId |
body |
string |
yes |
请求序号标识 |
每一次进行接口请求时,响应时与本次请求的标识一致,不能重复和传固定值 |
Sign |
body |
string |
yes |
接口签名 |
接口签名 |
Route |
body |
string |
yes |
操作路由 |
操作路由 |
Data |
body |
object |
yes |
具体数据 |
对应接口发送的数据对象 |
» PageIndex |
body |
integer |
yes |
获取指定页 |
获取指定页,为了方便记忆,序号从1开始 |
» PageSize |
body |
integer |
yes |
获取的每页大小 |
默认20条,最大100条 |
» OrderBy |
body |
string |
no |
排序的字段 |
排序的字段,不填写这使用默认的排序方式 |
» OrderType |
body |
integer |
yes |
排序的方式 |
排序的方式,0 是ASC,1是DESC |
» QueryCondition |
body |
[object] |
no |
查询条件集合 |
查询条件集合 |
»» Field |
body |
string |
yes |
查询字段 |
查询字段 |
»» Operator |
body |
integer |
yes |
查询操作符 |
查询操作符,详细请看类型枚举/查询操作符枚举 |
»» Value |
body |
string |
yes |
查询值 |
查询值,请根据字段的类型输入正确的值 |
请求示例
{
"ParkKey": "{{parkkey}}",
"AppId": "{{appid}}",
"TimeStamp": "{{timestamp}}",
"Nonce": "fzjkcexfbcfk",
"Sign": "{{sign}}",
"RequestId":"1710898076",
"Route":"SentryHostQuery",
"Data": {
"PageIndex": 1,
"PageSize": 25,
"OrderBy": "Uid",
"OrderType": 0,
"QueryCondition": [
{
"Field": "Uid",
"Operator": 3,
"Value": "1"
}
]
}
}
软件回复主题
回复参数说明
参数 |
类型 |
参数名 |
是否必填 |
描述 |
说明 |
ResultCode |
integer |
true |
none |
请求结果代码 |
详细信息请查看类型枚举/请求结果代码枚举,默认200为操作成功 |
ResultMsg |
string |
true |
none |
请求提示信息 |
接口请求返回的信息提示 |
ResultId |
string |
true |
none |
请求响应结果标识 |
每一次进行接口请求时,响应本次处理的标识 |
Data |
object¦null |
false |
none |
具体数据 |
对应接口响应的数据对象 |
» PageIndex |
integer |
true |
none |
当前页码 |
当前页,为了方便记忆,序号从1开始 |
» PageSize |
integer |
true |
none |
每页数据量 |
每页数据量 |
» TotalCount |
integer |
true |
none |
总数据量 |
总数据量 |
» Results |
[object]¦null |
false |
none |
当前查询数据结果 |
当前查询数据结果 |
»» Uid |
integer |
true |
none |
记录唯一主键 |
当前记录唯一主键 |
»» No |
string |
true |
none |
记录编号 |
表示当前记录的编号,唯一值 |
»» Name |
string |
true |
none |
岗亭名称 |
岗亭名称 |
»» Category |
integer |
true |
none |
岗亭类型 |
岗亭类型1-岗亭收费软件、2-岗亭后台服务 |
»» IP |
string |
true |
none |
岗亭IP地址 |
岗亭IP地址 |
»» TcpPort |
integer |
true |
none |
岗亭Tcp通讯端口 |
岗亭Tcp通讯端口 |
»» BSPort |
integer |
true |
none |
Bs岗亭时的后台端口 |
Bs岗亭时的后台端口 |
»» CreationTime |
string |
true |
none |
创建时间 |
创建数据的时间 |
»» Longitude |
number¦null |
false |
none |
岗亭经度 |
岗亭经度 |
»» Latitude |
number¦null |
false |
none |
岗亭纬度 |
岗亭纬度 |
返回示例
{
"ResultCode": 200,
"ResultMsg": "查询数据成功!",
"ResultId": "1710898076",
"Data": {
"PageIndex": 1,
"PageSize": 25,
"TotalCount": 1,
"Results": [
{
"Uid": 1,
"No": "1708773681705853",
"Name": "192.168.22.247",
"Category": 2,
"IP": "192.168.22.247",
"TcpPort": 10000,
"BSPort": 7702,
"CreationTime": "2024-02-24 11:21:21",
"Longitude": null,
"Latitude": null
}
]
}
}