feat: save messages to database (close #37)

This commit is contained in:
JustSong
2022-12-22 17:59:12 +08:00
parent f13ce0d53b
commit d26e578762
19 changed files with 682 additions and 34 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ type corpMessageResponse struct {
Message string `json:"errmsg"`
}
func SendCorpMessage(message *Message, user *model.User) error {
func SendCorpMessage(message *model.Message, user *model.User) error {
if user.CorpWebhookURL == "" {
return errors.New("未配置企业微信群机器人消息推送方式")
}