This commit is contained in:
Hsy
2025-02-20 17:32:53 +08:00
commit 144c1788f7
57 changed files with 2827 additions and 0 deletions

View File

@ -0,0 +1,11 @@
package cmd
import (
"github.com/robfig/cron/v3"
"hk/service/api/internal/cmd/cronx"
)
func ScheduleRun(c *cron.Cron) {
c.AddFunc(cronx.EveryHour(), configApiList)
c.AddFunc(cronx.EveryTenMinute(), configApiListv1)
}