帖子频道Event

帖子发布事件

ChannelArticleEvent

触发时机

用户在帖子频道发布帖子 / 编辑帖子时

需要权限

通用权限-查看频道

事件类型

6001

事件内容

EventBodyChannelArticle

字段类型说明
islandSourceIdstring来源群ID
channelIdstring来源帖子频道ID
dodoSourceIdstring来源DoDoID
personalobject个人信息
memberobject成员信息
articleIdstring帖子ID
titlestring标题
imageListlist<string>图片列表
contentstring文本内容,支持 菱形语法内容的接收

事件示例

{
    "type": 0,
    "data": {
        "eventBody": {
            "islandSourceId": "44659",
            "channelId": "123456",
            "dodoSourceId": "681856",
            "personal": {
                "nickName": "测试DoDo昵称",
                "avatarUrl": "https://static.imdodo.com/DoDoRes/Avatar/6.png",
                "sex": 1
            },
            "member": {
                "nickName": "测试群昵称",
                "joinTime": "2022-07-20 10:27:24"
            },
            "articleId": "10000",
            "title": "帖子发布测试",
            "imageList": ["https://img.imdodo.com/dodo/8c77d48865bf547a69fb3bba6228760c.png"],
            "content": "帖子发布测试成功"
        },
        "eventId": "3dcf80c0a3244661a6c65dd9ba37898a",
        "eventType": "6001",
        "timestamp": 1661153329922
    },
    "version": "v2"
}

帖子评论回复事件

ChannelArticleCommentEvent

触发时机

用户在帖子频道评论帖子 / 回复评论时

需要权限

通用权限-查看频道

事件类型

6002

事件内容

EventBodyChannelArticleComment

字段类型说明
islandSourceIdstring来源群ID
channelIdstring来源帖子频道ID
dodoSourceIdstring来源DoDoID
personalobject个人信息
memberobject成员信息
articleIdstring帖子ID
commentIdstring帖子评论ID
replyIdstring帖子评论回复ID,为空时:为评论事件,不为空时:为评论回复事件
imageListlist<string>图片列表
contentstring文本内容,支持 菱形语法内容的接收

事件示例

{
    "type": 0,
    "data": {
        "eventBody": {
            "islandSourceId": "44659",
            "channelId": "123456",
            "dodoSourceId": "681856",
            "personal": {
                "nickName": "测试DoDo昵称",
                "avatarUrl": "https://static.imdodo.com/DoDoRes/Avatar/6.png",
                "sex": 1
            },
            "member": {
                "nickName": "测试群昵称",
                "joinTime": "2022-07-20 10:27:24"
            },
            "articleId": "10000",
            "commentId": "1000010",
            "replyId": "100001010",
            "imageList": ["https://img.imdodo.com/dodo/8c77d48865bf547a69fb3bba6228760c.png"],
            "content": "帖子回复测试"
        },
        "eventId": "3dcf80c0a3244661a6c65dd9ba37898b",
        "eventType": "6002",
        "timestamp": 1661153329922
    },
    "version": "v2"
}