From 09d9c4efb807a3aa79613a9579579af99a005388 Mon Sep 17 00:00:00 2001 From: ericprd Date: Mon, 24 Mar 2025 14:02:20 +0800 Subject: [PATCH] fix: error clicked when create new news --- internal/domain/news/spec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/domain/news/spec.go b/internal/domain/news/spec.go index 2bba6e3..4e58d6a 100644 --- a/internal/domain/news/spec.go +++ b/internal/domain/news/spec.go @@ -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"` }