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

  1. package initialize
  2. import "gin-vue-admin/model"
  3. func initWkModel() {
  4. model.WorkflowBusinessStruct = make(map[string]func() model.GVA_Workflow)
  5. model.WorkflowBusinessStruct["leave"] = func() model.GVA_Workflow {
  6. return new(model.ExaWfLeaveWorkflow)
  7. }
  8. }
  9. func initWkTable() {
  10. model.WorkflowBusinessTable = make(map[string]func() interface{})
  11. model.WorkflowBusinessTable["leave"] = func() interface{} {
  12. return new(model.ExaWfLeave)
  13. }
  14. }
  15. func InitWkMode() {
  16. initWkModel()
  17. initWkTable()
  18. }