You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
498 B
22 lines
498 B
package initialize
|
|
|
|
import "gin-vue-admin/model"
|
|
|
|
func initWkModel() {
|
|
model.WorkflowBusinessStruct = make(map[string]func() model.GVA_Workflow)
|
|
model.WorkflowBusinessStruct["leave"] = func() model.GVA_Workflow {
|
|
return new(model.ExaWfLeaveWorkflow)
|
|
}
|
|
}
|
|
|
|
func initWkTable() {
|
|
model.WorkflowBusinessTable = make(map[string]func() interface{})
|
|
model.WorkflowBusinessTable["leave"] = func() interface{} {
|
|
return new(model.ExaWfLeave)
|
|
}
|
|
}
|
|
|
|
func InitWkMode() {
|
|
initWkModel()
|
|
initWkTable()
|
|
}
|