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撤回 }