data 改为map[string]interface{}
This commit is contained in:
parent
0b50b2f541
commit
c4c38478be
|
@ -13,7 +13,7 @@ import (
|
||||||
|
|
||||||
// ITask 继承这个接口的类
|
// ITask 继承这个接口的类
|
||||||
type ITask interface {
|
type ITask interface {
|
||||||
Execute(data interface{}) ITask
|
Execute(data map[string]interface{}) ITask
|
||||||
Init()
|
Init()
|
||||||
|
|
||||||
SetCrontab(cron string)
|
SetCrontab(cron string)
|
||||||
|
@ -184,7 +184,6 @@ func ExecuteOnPlan(task ITask, result chan string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
task = rtask
|
task = rtask
|
||||||
|
|
||||||
}
|
}
|
||||||
time.Sleep(interval)
|
time.Sleep(interval)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user