[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 {
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
}