feat: support render_mode now

This commit is contained in:
JustSong
2024-11-10 12:21:05 +08:00
parent 37b8562f0f
commit 939e956424
3 changed files with 23 additions and 9 deletions
+1
View File
@@ -24,6 +24,7 @@ type Message struct {
Desp string `json:"desp" gorm:"-:all"` // alias for content
Short string `json:"short" gorm:"-:all"` // alias for description
Async bool `json:"async" gorm:"-"` // if true, will send message asynchronously
RenderMode string `json:"render_mode" gorm:"raw"` // markdown (default), code, raw
}
func GetMessageByIds(id int, userId int) (*Message, error) {