修复读会话背景问题

This commit is contained in:
junleea 2025-03-25 15:19:15 +08:00
parent c242bbbd60
commit 0b508ccfcc
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ type Session struct {
gorm.Model gorm.Model
UserID int `gorm:"column:user_id"` //只能由用户创建 UserID int `gorm:"column:user_id"` //只能由用户创建
Name string `gorm:"column:name"` Name string `gorm:"column:name"`
Context []int `gorm:"column:context;type:json"` //会话上下文 Context json.RawMessage `gorm:"column:context;type:json"` //会话上下文
} }
type Message struct { type Message struct {