workflow.go 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. package request
  2. type WorkflowBusinessObject struct {
  3. BusinessType string `json:"businessType"`
  4. BusinessObject interface{} `json:"businessObject"`
  5. }
  6. type LaunchWorkflowPrepareParams struct {
  7. WorkflowTemplateID string `json:"workflowTemplateId" binding:"required" assign:"toField:WorkflowTemplateID"`
  8. CreateUserID string `json:"createUserId" binding:"required" assign:"toField:CreateUserID"`
  9. TenantID string `json:"tenantId" binding:"required" assign:"toField:TenantID"`
  10. }
  11. type StartWorkflowRequest struct {
  12. WorkflowTemplateID string `json:"workflowTemplateId"`
  13. LaunchUserName string `json:"launchUserName"`
  14. Matter string `json:"matter"`
  15. BusinessObject string `json:"businessObject"`
  16. UserStructureID string `json:"userStructureId"`
  17. CreateUserID string `json:"createUserId"`
  18. TenantID string `json:"tenantId"`
  19. }
  20. type StartWorkFlowByBusinessTypeRequest struct {
  21. BusinessType string `json:"businessType"`
  22. LaunchUserName string `json:"launchUserName"`
  23. Matter string `json:"matter"`
  24. Data interface{} `json:"data"`
  25. CreateUserID string `json:"createUserId"`
  26. TenantID string `json:"tenantId"`
  27. }