From 0e96b3ca84dfc460809b9de035394ce3ec283874 Mon Sep 17 00:00:00 2001 From: Havoc412 <2993167370@qq.com> Date: Mon, 21 Oct 2024 17:50:42 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20change=20varchar=20size?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/model/encounter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/model/encounter.go b/app/model/encounter.go index 502957d..9299374 100644 --- a/app/model/encounter.go +++ b/app/model/encounter.go @@ -26,8 +26,8 @@ type Encounter struct { // Encounter 或者称为 post,指的就是 Human 单 // Time 从 CreatedAt 中解析 // TAG Avatar 最好是压缩后的备份图像 - Avatar string `gorm:"type:varchar(1s0)" json:"avatar,omitempty"` // 缩略图 url,为 Go 获取 Photo 之后压缩处理后的图像,单独存储。 - AvatarHeight uint16 `json:"avatar_height,omitempty"` // 为了方便前端在加载图像前的骨架图 & 瀑布流展示。 + Avatar string `gorm:"type:varchar(50)" json:"avatar,omitempty"` // 缩略图 url,为 Go 获取 Photo 之后压缩处理后的图像,单独存储。 + AvatarHeight uint16 `json:"avatar_height,omitempty"` // 为了方便前端在加载图像前的骨架图 & 瀑布流展示。 AvatarWidth uint16 `json:"avatar_width,omitempty"` Photos string `gorm:"type:varchar(100)" json:"photos,omitempty"` // 图片数组 // POI