data 改为map[string]interface{}
This commit is contained in:
parent
0b50b2f541
commit
c4c38478be
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user