From 32e37006e363b85b5fd216eb52e32f16ea445ee9 Mon Sep 17 00:00:00 2001 From: liqi Date: Thu, 4 Dec 2025 21:01:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/model/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"`