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