简要描述
服务端发布主题
服务端发布给软件的参数
注:Route 值 为 AreaQuery
参数 |
类型 |
参数名 |
是否必填 |
描述 |
说明 |
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": "owekhjgzkosy",
"Sign": "{{sign}}",
"RequestId":"1710898017",
"Route":"AreaQuery",
"Data": {
"PageIndex": 1,
"PageSize": 25,
"OrderType": 0
}
}
软件回复主题
回复参数说明
参数 |
类型 |
参数名 |
是否必填 |
描述 |
说明 |
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 |
记录编号 |
表示当前记录的编号,唯一值 |
»» AreaName |
string |
true |
none |
区域名称 |
区域名称 |
»» AreaType |
integer |
true |
none |
区域类型 |
区域类型,0-外场 1-嵌套内场 |
»» AreaSpaceNum |
integer |
true |
none |
区域可用车位 |
区域可用车位 |
»» PUid |
integer |
true |
none |
嵌套区域时,关联的父区域主键 |
嵌套区域时,关联的父区域主键,当时外场区域时则为0 |
»» Level |
integer |
true |
none |
当前区域嵌套层级 |
层级,当前区域是内嵌第几层;0-表示最外层外场区域 |
»» CreationTime |
string |
true |
none |
创建时间 |
创建数据的时间 |
返回示例
{
"ResultCode": 200,
"ResultMsg": "查询数据成功!",
"ResultId": "1710898017",
"Data": {
"PageIndex": 1,
"PageSize": 25,
"TotalCount": 1,
"Results": [
{
"Uid": 1,
"No": "1710773208177119",
"AreaName": "外场",
"AreaType": 0,
"AreaSpaceNum": 500,
"PUid": 0,
"Level": 0,
"CreationTime": "2024-03-18 14:46:48"
}
]
}
}