# 区域事件回调
回调内容参见:校验回调路径,解密方式参见:data的加解密,将data解密后得到的内容即为以下描述的回调内容。业务方收到事件后,务必返回正确的signature,才会认为回调成功;服务器在5秒内收不到响应则断开连接。对于失败的回调,服务器会进行重试,总共重试3次,业务方可以使用事件ID进行消息排重。
事件列表:
事件类型 | 事件说明 | 事件分组 | 分组说明 |
---|---|---|---|
area_create | 新增区域 | area | 区域变更 |
area_update | 修改区域 | area | 区域变更 |
回调内容:
{
"event_type": "area_create",
"message": {
"_id": "8b2edc1f-a869-4d87-ae9f-1beec7a0c513",
"_timestamp": 1602742001287,
"area_id": "d492d111-c358-4ce7-b67f-dbcefa294235",
"name": "黄埔园区",
"parent_id": null
}
}
参数说明:
参数 | 说明 |
---|---|
event_type | 事件类型 |
message | 事件内容 |
— _id | 事件ID |
— _timestamp | 事件发生时的时间戳 |
— area_id | 区域ID |
— name | 区域名称 |
— parent_id | 父区域ID |
事件列表:
事件类型 | 事件说明 | 事件分组 | 分组说明 |
---|---|---|---|
area_delete | 删除区域 | area | 区域变更 |
回调内容:
{
"event_type": "area_delete",
"message": {
"_id": "8b2edc1f-a869-4d87-ae9f-1beec7a0c513",
"_timestamp": 1602742001287,
"area_ids": ["d492d111-c358-4ce7-b67f-dbcefa294235"]
}
}
参数说明:
参数 | 说明 |
---|---|
event_type | 事件类型 |
message | 事件内容 |
— _id | 事件ID |
— _timestamp | 事件发生时的时间戳 |
— area_ids | 区域ID列表 |