From 07626c9d54fc2d2d2c2d5f80ab6401af2f67cc2c Mon Sep 17 00:00:00 2001 From: yanweidong Date: Fri, 8 Mar 2024 14:17:19 +0800 Subject: [PATCH] fix message type --- types/mcs.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/mcs.go b/types/mcs.go index 58790c7..e35ed9d 100644 --- a/types/mcs.go +++ b/types/mcs.go @@ -12,6 +12,7 @@ type Message struct { MsgType int32 //0异常提示,1单聊,2群聊,3系统 BodyType int32 //正文类型:0文本,1图片,2,视频,3..... Body string + Status int32 //消息状态:0待续,1存储成功,2送达确认,3已读确认,-1撤回 } type ChatMessage struct { @@ -23,6 +24,7 @@ type ChatMessage struct { TargetIdentity string BodyType int32 //正文类型:0文本,1图片,2,视频,3..... Body string + Status int32 //消息状态:0待续,1存储成功,2送达确认,3已读确认,-1撤回 } type GroupMessage struct { @@ -33,6 +35,7 @@ type GroupMessage struct { SenderIdentity string BodyType int32 //正文类型:0文本,1图片,2,视频,3..... Body string + Status int32 //消息状态:0待续,1存储成功,2送达确认,3已读确认,-1撤回 } type SystemMessage struct { @@ -41,6 +44,7 @@ type SystemMessage struct { TargetIdentity string BodyType int32 //正文类型:0文本,1图片,2,视频,3..... Body string + Status int32 //消息状态:0待续,1存储成功,2送达确认,3已读确认,-1撤回 } type EventMessage struct { @@ -48,4 +52,5 @@ type EventMessage struct { TargetId int64 TargetIdentity string EventType int32 //事件类型:0 正在输入,已送达... + Status int32 //消息状态:0待续,1存储成功,2送达确认,3已读确认,-1撤回 }