workflow.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package response
  2. type MsgResponse struct {
  3. Success bool `json:"success"`
  4. ErrCode int `json:"errCode"`
  5. Msg string `json:"msg"`
  6. }
  7. type InfosData[T any] struct {
  8. Infos []T `json:"infos"`
  9. TotalCount int64 `json:"totalCount"`
  10. PageNo int `json:"pageNo"`
  11. }
  12. type InfoResponse[T any] struct {
  13. MsgResponse
  14. Info T `json:"info"`
  15. }
  16. type InfosResponse[T any] struct {
  17. MsgResponse
  18. InfosData[T]
  19. }
  20. type BusinessCatalogsInfoWithWorkflowTemplate struct {
  21. ID string `json:"id"`
  22. Name string `json:"name"`
  23. Code string `json:"code"`
  24. Sort int `json:"sort"`
  25. TenantID string `json:"tenantId" `
  26. CreateUserID string `json:"createUserId"`
  27. LastUpdateUserID string `json:"lastUpdateUserId"`
  28. CreatedTime string `json:"createdTime"`
  29. LastUpdatedTime string `json:"lastUpdatedTime"`
  30. WorkTemplateId string `json:"workTemplateId"`
  31. }
  32. type PrepareInfo struct {
  33. Flag int `json:"flag"` // 1-选择部门 2-选择审批人
  34. WorkflowFieldLabel string `json:"workflowFieldLabel"`
  35. ChooseData []CustomStructureInfo `json:"chooseData"`
  36. WorkflowFieldName string `json:"workflowFieldName"`
  37. }
  38. type CustomStructureInfo struct {
  39. ID string `json:"id"`
  40. Name string `json:"name"`
  41. Visible int `json:"visible"`
  42. Sort int `json:"sort"`
  43. ParentID string `json:"parentId"`
  44. Paths string `json:"paths" `
  45. LeaderUserID string `json:"leaderUserId" `
  46. LeaderUserName string `json:"leaderUserName"`
  47. TenantID string `json:"tenantId"`
  48. CreateUserID string `json:"createUserId"`
  49. LastUpdateUserID string `json:"lastUpdateUserId"`
  50. CreatedTime string `json:"createdTime"`
  51. LastUpdatedTime string `json:"lastUpdatedTime"`
  52. }