This commit is contained in:
mei
2026-06-06 15:25:38 +08:00
parent 821d4b2d53
commit 7c4fb1e1d8
5 changed files with 17 additions and 5 deletions
+6
View File
@@ -7,9 +7,11 @@ import (
"github.com/gin-contrib/sessions"
"github.com/gin-contrib/sessions/cookie"
"github.com/gin-gonic/gin"
"github.com/robfig/cron/v3"
"github.com/ssdomei232/goodBaby/api/account"
"github.com/ssdomei232/goodBaby/api/rule"
"github.com/ssdomei232/goodBaby/api/user"
"github.com/ssdomei232/goodBaby/handler/checker"
)
func main() {
@@ -38,6 +40,10 @@ func main() {
}
r.Run(":8088")
c := cron.New()
c.AddFunc("@every 10m", checker.CheckTimers)
c.Start()
}
func generateRandomKey(length int) []byte {