workflow.go 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package request
  2. type LaunchWorkflowPrepareParams struct {
  3. WorkflowTemplateID string `json:"workflowTemplateId" binding:"required" assign:"toField:WorkflowTemplateID"`
  4. CreateUserID string `json:"createUserId" binding:"required" assign:"toField:CreateUserID"`
  5. TenantID string `json:"tenantId" binding:"required" assign:"toField:TenantID"`
  6. }
  7. type LaunchWorkflowTemplatePrepareParams struct {
  8. StructureRootID string `json:"structureRootId" binding:"required"`
  9. CreateUserID string `json:"createUserId" binding:"required" assign:"toField:CreateUserID"`
  10. TenantID string `json:"tenantId" binding:"required" assign:"toField:TenantID"`
  11. }
  12. type StartWorkflowTemplateRequest struct {
  13. WorkflowTemplateName string `json:"workflowTemplateName"`
  14. StructureRootID string `json:"structureRootId"`
  15. Process string `json:"process"`
  16. LaunchUserName string `json:"launchUserName"`
  17. Matter string `json:"matter"`
  18. BusinessEntityObject string `json:"businessEntityObject"`
  19. BusinessObject string `json:"businessObject"`
  20. UserStructureID string `json:"userStructureId"`
  21. Data interface{} `json:"data"`
  22. CreateUserID string `json:"createUserId"`
  23. TenantID string `json:"tenantId"`
  24. }
  25. type StartWorkflowRequest struct {
  26. WorkflowTemplateID string `json:"workflowTemplateId"`
  27. LaunchUserName string `json:"launchUserName"`
  28. Matter string `json:"matter"`
  29. BusinessEntityObject string `json:"businessEntityObject"`
  30. BusinessObject string `json:"businessObject"`
  31. UserStructureID string `json:"userStructureId"`
  32. CreateUserID string `json:"createUserId"`
  33. TenantID string `json:"tenantId"`
  34. ChoiceApproveInfos map[string]any `json:"-"`
  35. }
  36. type StartWorkFlowByBusinessTypeRequest struct {
  37. BusinessType string `json:"businessType"`
  38. LaunchUserName string `json:"launchUserName"`
  39. Matter string `json:"matter"`
  40. Data interface{} `json:"data"`
  41. CreateUserID string `json:"createUserId"`
  42. TenantID string `json:"tenantId"`
  43. }
  44. type StartWorkFlowWithoutPrepareByBusinessTypeRequest struct {
  45. StartWorkFlowByBusinessTypeRequest
  46. UserStructureID string `json:"userStructureId"`
  47. ChoiceApproveInfos map[string]any `json:"choiceApproveInfos"`
  48. }