数据动态查找以及动态赋值方法变更

This commit is contained in:
pixel
2020-11-19 17:24:05 +08:00
parent 0286d56e9c
commit a487266f5b
9 changed files with 67 additions and 26 deletions
+4 -4
View File
@@ -10,13 +10,13 @@ func initWkModel() {
}
func initWkTable() {
model.WorkflowBusinessTable = make(map[string]string)
model.WorkflowBusinessTable["leave"] = "exa_wf_leaves"
model.WorkflowBusinessTable = make(map[string]func() interface{})
model.WorkflowBusinessTable["leave"] = func() interface{} {
return new(model.ExaWfLeave)
}
}
func InitWkMode() {
initWkModel()
initWkTable()
}