refactor: 重构数据库逻辑

This commit is contained in:
lixiangwuxian
2024-10-11 00:14:11 +08:00
parent 7aebdeae56
commit 769308389a
16 changed files with 289 additions and 164 deletions

19
handler/health/health.go Normal file
View File

@@ -0,0 +1,19 @@
package health
import (
"git.lxtend.com/qqbot/handler"
"git.lxtend.com/qqbot/model"
)
func init() {
handler.RegisterHandler("health", health)
}
func health(msg model.Message) (reply model.Reply) {
heathResult := ""
return model.Reply{
ReplyMsg: heathResult,
ReferOriginMsg: true,
FromMsg: msg,
}
}