[feat] 定时任务支持

This commit is contained in:
what 2023-10-30 16:23:45 +08:00
parent 252fa41b65
commit 00f65c347a

View File

@ -11,13 +11,13 @@ type CronService interface {
type Cron interface { type Cron interface {
Controller Controller
// 任务处理 // 任务处理
Handle(time.Time) error Run(time.Time) error
} }
type CronBase struct { type CronBase struct {
Controller Controller
} }
func (CronBase) Handle(t time.Time) error { func (CronBase) Run(t time.Time) error {
return nil return nil
} }