[feat] 定时任务支持

This commit is contained in:
2023-10-30 15:00:33 +08:00
parent 901767a1dc
commit 41bfdea63b
2 changed files with 33 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package contracts
import "time"
type CronService interface {
Start() error
Stop() error
Restart() error
}
type Cron interface {
Controller
// 任务处理
Handle(time.Time) error
}