From 6cf3ee961284f2e37282c001206ed7166639b969 Mon Sep 17 00:00:00 2001 From: JustSong Date: Fri, 23 Dec 2022 20:48:59 +0800 Subject: [PATCH] fix: save URL to database --- model/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/message.go b/model/message.go index 02d7292..014cb5a 100644 --- a/model/message.go +++ b/model/message.go @@ -13,7 +13,7 @@ type Message struct { Description string `json:"description"` Desp string `json:"desp" gorm:"-:all"` // alias for description Content string `json:"content"` - URL string `json:"url" gorm:"-:all"` + URL string `json:"url" gorm:"column:url"` Channel string `json:"channel"` Token string `json:"token" gorm:"-:all"` HTMLContent string `json:"html_content" gorm:"-:all"`