From 0b508ccfccc66d4541e655d93468e34ff970a421 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Tue, 25 Mar 2025 15:19:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=BB=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dao/im.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dao/im.go b/dao/im.go index 180d907..50bbb68 100644 --- a/dao/im.go +++ b/dao/im.go @@ -9,9 +9,9 @@ import ( type Session struct { gorm.Model - UserID int `gorm:"column:user_id"` //只能由用户创建 - Name string `gorm:"column:name"` - Context []int `gorm:"column:context;type:json"` //会话上下文 + UserID int `gorm:"column:user_id"` //只能由用户创建 + Name string `gorm:"column:name"` + Context json.RawMessage `gorm:"column:context;type:json"` //会话上下文 } type Message struct {