data 改为map[string]interface{}

This commit is contained in:
eson 2018-12-21 23:41:49 +08:00
parent 0b50b2f541
commit c4c38478be

View File

@ -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)
}