fix: error clicked when create new news

This commit is contained in:
ericprd 2025-03-24 14:02:20 +08:00
parent 990026cece
commit 09d9c4efb8

View File

@ -35,7 +35,7 @@ type News struct {
LiveAt time.Time `json:"live_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Clicked int64 `json:"clicked"`
Clicked int64 `json:"clicked" gorm:"-"`
Author Staff `json:"author"`
}