From c617344e33a7eacd46304e44f347bca699f3b1b5 Mon Sep 17 00:00:00 2001 From: timerzz Date: Thu, 5 Sep 2024 21:13:50 +0800 Subject: [PATCH] =?UTF-8?q?feat=20article=20update=E6=8E=92=E9=99=A4?= =?UTF-8?q?=E5=85=B3=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- structs/storage/article.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs/storage/article.go b/structs/storage/article.go index a904918..ae617f3 100644 --- a/structs/storage/article.go +++ b/structs/storage/article.go @@ -51,7 +51,7 @@ func (a *articleApi) Upsert(article v2.Article) error { func (a *articleApi) Update(article v2.Article, selects ...string) error { if len(selects) > 0 { - selects = []string{"remark", "exclude"} + selects = []string{"Remark", "Exclude"} } return a.db.Model(&article).Select(selects).Omit(clause.Associations).Updates(article).Error }