From 5be804d2d2362e7bdbc43c9a8759c7c1c03047a5 Mon Sep 17 00:00:00 2001 From: what Date: Mon, 30 Oct 2023 15:44:12 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cron.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cron.go b/cron.go index f4484ec..9eea5f7 100644 --- a/cron.go +++ b/cron.go @@ -13,3 +13,11 @@ type Cron interface { // 任务处理 Handle(time.Time) error } + +type CronBase struct { + Controller +} + +func (CronBase) Handle(t time.Time) error { + return nil +}