소스 검색

fix: save URL to database

JustSong 3 년 전
부모
커밋
6cf3ee9612
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      model/message.go

+ 1 - 1
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"`