Enhance the message notification feature

This commit is contained in:
yoan
2024-09-24 22:39:42 +08:00
parent 4c9095400e
commit ac4904fb9a
18 changed files with 1322 additions and 337 deletions

View File

@@ -1,6 +1,7 @@
package domains
import (
"certimate/internal/notify"
"certimate/internal/utils/app"
"context"
)
@@ -25,6 +26,11 @@ func InitSchedule() {
}
}
// 过期提醒
app.GetScheduler().Add("expire", "0 0 * * *", func() {
notify.PushExpireMsg()
})
// 启动定时任务
app.GetScheduler().Start()
app.GetApp().Logger().Info("定时任务启动成功", "total", app.GetScheduler().Total())