From d26e208ad648eba76c1ab48fbd0714d60aa937f4 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Mon, 24 Mar 2025 14:55:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dsession=E5=AD=98=E4=BC=9A?= =?UTF-8?q?=E8=AF=9Dollama=E8=83=8C=E6=99=AF=EF=BC=88=E6=95=B0=E7=BB=84?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dao/im.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dao/im.go b/dao/im.go index 5112d34..26805bf 100644 --- a/dao/im.go +++ b/dao/im.go @@ -9,7 +9,7 @@ type Session struct { gorm.Model UserID int `gorm:"column:user_id"` //只能由用户创建 Name string `gorm:"column:name"` - Context []int `gorm:"column:context"` //会话上下文 + Context []int `gorm:"column:context;type:json"` //会话上下文 } type Message struct {