修改CommentResponse字段
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user