16 lines
190 B
Go
16 lines
190 B
Go
|
package contracts
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type CronService interface {
|
||
|
Start() error
|
||
|
Stop() error
|
||
|
Restart() error
|
||
|
}
|
||
|
|
||
|
type Cron interface {
|
||
|
Controller
|
||
|
// 任务处理
|
||
|
Handle(time.Time) error
|
||
|
}
|