From c4c38478be036a0da694f1dead1be5efdbfa4361 Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Fri, 21 Dec 2018 23:41:49 +0800 Subject: [PATCH] =?UTF-8?q?data=20=E6=94=B9=E4=B8=BAmap[string]interface{}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- person.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/person.go b/person.go index 2428a8f..6265b8e 100644 --- a/person.go +++ b/person.go @@ -13,7 +13,7 @@ import ( // ITask 继承这个接口的类 type ITask interface { - Execute(data interface{}) ITask + Execute(data map[string]interface{}) ITask Init() SetCrontab(cron string) @@ -184,7 +184,6 @@ func ExecuteOnPlan(task ITask, result chan string) { return } task = rtask - } time.Sleep(interval) }