Skip to content
开发文档
能力中心
应用市场
WebOffice
开发者后台

公告变更事件

事件描述

企业公告发送/更新/删除/撤回时通知。

订阅说明

事件主体kso.xz.announce
权限要求查询公告 kso.announce.read
解密方式详见 解密算法

事件体(解密前)

名称参数类型说明
topicstring消息主题 kso.xz.announce
operationstring消息变更动作
create:发布;update:更新;delete:删除;recall:撤回
timeinteger时间(秒为单位的时间戳)
noncestringiv 向量(解密时使用)
signaturestring消息签名
encrypted_datastring消息变更的加密字段

事件体示例(解密前)

json
{
  "topic": "kso.xz.announce",
  "operation": "create",
  "time": 1704074400,
  "nonce": "71***********7",
  "signature": "w6**********6Q",
  "encrypted_data": "B7**********iA=="
}

事件体数据(解密后)

名称参数类型是否必带说明
announce_event_typestring事件类型:announce_event(公告事件)、announce_security_level_event(密级事件)、announce_group_event:(分组事件)
event_announceobject公告事件主体数据
∟ idstring公告id
∟ is_topboolean置顶状态(true=置顶,false=非置顶)
event_security_levelobject密级事件
∟ idstring密级id
∟ mobile_visibleboolean移动端可见性(true=可见,false=隐藏)
event_groupobject公告分组信息
∟ idstring分组id
∟ namestring分组名称

事件体数据示例(解密后)

json
{
  "announce_event_type": "announce_event",
  "event_announce": {
    "id": "123456789",
    "is_top": true 
  },
  "event_security_level": {
    "id": "2",
    "mobile_visible": true 
  },
  "event_group": {
    "id": "1",
    "name": "分组名称"
  }
}
回到旧版