diff --git a/cron.go b/cron.go index 9eea5f7..37bf0f7 100644 --- a/cron.go +++ b/cron.go @@ -11,13 +11,13 @@ type CronService interface { type Cron interface { Controller // 任务处理 - Handle(time.Time) error + Run(time.Time) error } type CronBase struct { Controller } -func (CronBase) Handle(t time.Time) error { +func (CronBase) Run(t time.Time) error { return nil }