fix message type

This commit is contained in:
yanweidong 2024-03-08 14:17:19 +08:00
parent ddc1eb90d8
commit 07626c9d54
1 changed files with 5 additions and 0 deletions

View File

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