diff --git a/internal/model/types.go b/internal/model/types.go index 6be910f..996c1f6 100644 --- a/internal/model/types.go +++ b/internal/model/types.go @@ -25,7 +25,7 @@ type ChatMessage struct { SenderUserID string `gorm:"type:varchar(100);index;comment:发送者用户ID" json:"sender_user_id"` // 接收者用户ID ReceiverUserID string `gorm:"type:varchar(100);index;comment:接收者用户ID" json:"receiver_user_id"` - // 消息类型 (0:文本, 1:图片, 2:音频, 3:视频, 4:处方, 5:病例, 6:视频通话, 7:语音通话, 8:文件) + // 消息类型 ( // 0:文本 1:图片 2:语音 3:视频 8:文件 6:信令) MessageType int `gorm:"type:int;comment:消息类型" json:"message_type"` // 消息内容或信令数据 Content string `gorm:"type:text;comment:消息内容" json:"content"`