diff --git a/cron.go b/cron.go index 37bf0f7..9e373f6 100644 --- a/cron.go +++ b/cron.go @@ -1,7 +1,5 @@ package contracts -import "time" - type CronService interface { Start() error Stop() error @@ -11,13 +9,13 @@ type CronService interface { type Cron interface { Controller // 任务处理 - Run(time.Time) error + Run(User) error } type CronBase struct { Controller } -func (CronBase) Run(t time.Time) error { +func (CronBase) Run(User) error { return nil }