Skip to content
产品中心
能力中心
场景方案
应用市场
WebOffice
开发者后台

待办任务生命周期事件

事件描述

待办任务创建、修改、删除时触发

订阅说明

事件主体kso.todo_task.change
权限要求查询待办任务 kso.task.read
解密方式详见 解密算法

事件体(解密前)

名称类型说明
topicstring消息主题(值为"kso.todo_task.change")
operationstring消息变更动作(create-创建、update-更新、delete-删除)
timeinteger时间(秒为单位的时间戳)
noncestringiv 向量(解密时使用)
signaturestring消息签名
encrypted_datastring消息变更的加密字段

事件体示例(解密前)

json
{
  "topic": "kso.todo_task.change",
  "operation": "update",
  "nonce": "xxxxxx",
  "signature": "xxxxxxxxxxxx",
  "time": 0, // 秒为单位的时间戳
  "encrypted_data": "xxxxxx"
}

事件体(解密后)

名称类型说明
task_idstring待办任务 id

事件体示例(解密后)

json
data: {
    "task_id": "string",        // 待办任务id
}