contracts/cron.go

16 lines
190 B
Go
Raw Normal View History

2023-10-30 15:00:33 +08:00
package contracts
import "time"
type CronService interface {
Start() error
Stop() error
Restart() error
}
type Cron interface {
Controller
// 任务处理
Handle(time.Time) error
}