日程变更
事件描述
日程变化时,包括 创建、修改、删除时触发此消息,注意operation都是update,收到事件后,可根据日历id查询日程列表获取增量变更信息。
订阅说明
| 事件主体 | kso.calendar.event |
|---|---|
| 权限要求 | 查询日程信息 kso.calendar_events.read |
| 解密方式 | 详见 事件安全校验 |
事件体(解密前)
| 名称 | 参数类型 | 说明 |
|---|---|---|
| topic | string | 消息主题 kso.calendar.event |
| operation | string | 消息变更动作update:更新 |
| time | integer | 时间(秒为单位的时间戳) |
| nonce | string | iv 向量(解密时使用) |
| signature | string | 消息签名 |
| encrypted_data | string | 消息变更的加密字段 |
事件体示例(解密前)
json
{
"topic": "kso.calendar.event",
"operation": "update",
"time": 1704074400,
"nonce": "71***********7",
"signature": "w6**********6Q",
"encrypted_data": "B7**********iA=="
}事件体数据(解密后)
| 名称 | 参数类型 | 是否必带 | 说明 |
|---|---|---|---|
| event | object | 是 | 日程事件信息 |
| ∟ id | string | 是 | 日程 ID |
| ∟ organizer_calendar_id | string | 是 | 日程所属日历 ID |
| ∟ calendar_list | array[object] | 是 | 此日程变更涉及的日历 ID 列表 |
| ∟ ∟ calendar_id | string | 是 | 日历 ID |
事件体数据示例(解密后)
json
{
"event": {
"id": "1",
"organizer_calendar_id": "121",
"calendar_list": [
{
"calendar_id": "121"
},
{
"calendar_id": "122"
}
]
}
}