待办任务生命周期事件
事件描述
待办任务创建、修改、删除时触发
订阅说明
事件主体 | kso.todo_task.change |
---|---|
权限要求 | 查询待办任务 kso.task.read |
解密方式 | 详见 解密算法 |
事件体(解密前)
名称 | 类型 | 说明 |
---|---|---|
topic | string | 消息主题(值为"kso.todo_task.change") |
operation | string | 消息变更动作(create-创建、update-更新、delete-删除) |
time | integer | 时间(秒为单位的时间戳) |
nonce | string | iv 向量(解密时使用) |
signature | string | 消息签名 |
encrypted_data | string | 消息变更的加密字段 |
事件体示例(解密前)
json
{
"topic": "kso.todo_task.change",
"operation": "update",
"nonce": "xxxxxx",
"signature": "xxxxxxxxxxxx",
"time": 0, // 秒为单位的时间戳
"encrypted_data": "xxxxxx"
}
事件体(解密后)
名称 | 类型 | 说明 |
---|---|---|
task_id | string | 待办任务 id |
事件体示例(解密后)
json
data: {
"task_id": "string", // 待办任务id
}