From 00f65c347a76964df4cdfa8497b0ba055289b416 Mon Sep 17 00:00:00 2001 From: what Date: Mon, 30 Oct 2023 16:23:45 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron.go b/cron.go index 9eea5f7..37bf0f7 100644 --- a/cron.go +++ b/cron.go @@ -11,13 +11,13 @@ type CronService interface { type Cron interface { Controller // 任务处理 - Handle(time.Time) error + Run(time.Time) error } type CronBase struct { Controller } -func (CronBase) Handle(t time.Time) error { +func (CronBase) Run(t time.Time) error { return nil }