From 576656a566082367b5411cac181dc44cb8db84cf Mon Sep 17 00:00:00 2001 From: truthhun <1272881215@qq.com> Date: Sat, 1 Apr 2023 14:18:59 +0800 Subject: [PATCH] =?UTF-8?q?dynamic=E8=A1=A8content=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E7=94=A8text=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/dynamic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/dynamic.go b/model/dynamic.go index 2ebb656..e316543 100644 --- a/model/dynamic.go +++ b/model/dynamic.go @@ -10,7 +10,7 @@ import ( type Dynamic struct { Id int64 `form:"id" json:"id,omitempty" gorm:"primaryKey;autoIncrement;column:id;comment:;"` UserId int64 `form:"user_id" json:"user_id,omitempty" gorm:"column:user_id;type:bigint(20);size:20;default:0;index:idx_user_id;comment:;"` - Content string `form:"content" json:"content,omitempty" gorm:"column:content;type:tinytext;comment:内容,存储JSON;"` + Content string `form:"content" json:"content,omitempty" gorm:"column:content;type:text;comment:内容;"` Type int `form:"type" json:"type,omitempty" gorm:"column:type;type:smallint(6);size:6;default:0;comment:类型;index:idx_type;"` CreatedAt *time.Time `form:"created_at" json:"created_at,omitempty" gorm:"column:created_at;type:datetime;comment:创建时间;"` UpdatedAt *time.Time `form:"updated_at" json:"updated_at,omitempty" gorm:"column:updated_at;type:datetime;comment:更新时间;"`