contracts/cron.go
2023-10-30 16:38:43 +08:00

22 lines
254 B
Go

package contracts
type CronService interface {
Start() error
Stop() error
Restart() error
}
type Cron interface {
Controller
// 任务处理
Run(User) error
}
type CronBase struct {
Controller
}
func (CronBase) Run(User) error {
return nil
}