From ee2bcf19886c143cf167976418194caf21ca2976 Mon Sep 17 00:00:00 2001 From: JACKYMYPERSON Date: Sat, 27 Sep 2025 18:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9CommentResponse=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/comments/getcomments/getcomments.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/comments/getcomments/getcomments.go b/controllers/comments/getcomments/getcomments.go index e687ca4..ec2993b 100644 --- a/controllers/comments/getcomments/getcomments.go +++ b/controllers/comments/getcomments/getcomments.go @@ -29,8 +29,8 @@ type CommentResponse struct { ParentID int64 `gorm:"column:parent_id" json:"parent_id"` Content string `gorm:"column:content" json:"content"` LikesCount int `gorm:"column:likes_count" json:"likes_count"` - CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` - UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` + CreatedAt time.Time `gorm:"column:created_time" json:"created_at"` + UpdatedAt time.Time `gorm:"column:update_time" json:"updated_at"` // 嵌入发布者的信息 Username string `gorm:"column:username" json:"username"` // 直接映射 user_info.username