approve.go 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. package response
  2. // DataApproveDetail 审批详情信息
  3. type DataApproveDetail struct {
  4. Approve *DataApproveDetailItem `description:"审批信息"`
  5. ApproveFlowNodes []*DataApproveDetailNodes `description:"审批节点信息"`
  6. DataList []DataApproveDetailData `description:"指标/图表列表"`
  7. }
  8. // DataApproveDetailData 审批详情-报告信息
  9. type DataApproveDetailData struct {
  10. DataId int `description:"数据ID"`
  11. DataName string `description:"数据名称"`
  12. DataCode string `description:"数据code"`
  13. DataClassify int `description:"数据所属分类"`
  14. }
  15. // DataApproveDetailItem 审批详情-审批信息
  16. type DataApproveDetailItem struct {
  17. DataApproveId int `description:"审批ID"`
  18. State int `description:"审批状态:1-待审批;2-已审批;3-已驳回;4-已撤回"`
  19. FlowId int `description:"审批流ID"`
  20. FlowVersion int `description:"审批流版本"`
  21. StartNodeId int `description:"开始节点ID"`
  22. CurrNodeId int `description:"当前节点ID"`
  23. ApplyUserId int `description:"申请人ID"`
  24. ApplyUserName string `description:"申请人姓名"`
  25. ApproveTime string `description:"审批时间"`
  26. CreateTime string `description:"创建时间"`
  27. ModifyTime string `description:"修改时间"`
  28. }
  29. // DataApproveDetailNodes 审批详情-节点信息
  30. type DataApproveDetailNodes struct {
  31. DataApproveNodeId int `description:"看板审批节点ID"`
  32. DataApproveFlowId int `description:"看板审批流ID"`
  33. PrevNodeId int `description:"上一个节点ID(0为开始节点)"`
  34. NextNodeId int `description:"下一个节点ID(0为结束节点)"`
  35. NodeType int `description:"节点类型:0-审批;1-抄送"`
  36. ApproveType int `description:"审批类型:1-依次审批;2-会签;3-或签"`
  37. Users []*DataApproveDetailNodeUser `description:"审批人信息"`
  38. }
  39. // DataApproveDetailNodeUser 审批详情-节点用户信息
  40. type DataApproveDetailNodeUser struct {
  41. DataApproveNodeUserReq
  42. ApproveRecord *DataApproveDetailNodeUserRecord `description:"用户审批记录"`
  43. }
  44. // DataApproveNodeUserReq 报告审批节点用户请求体
  45. type DataApproveNodeUserReq struct {
  46. UserType string `description:"审批人类型: user-用户; role-角色"`
  47. UserId int `description:"用户/角色ID"`
  48. UserName string `description:"用户/角色姓名"`
  49. Sort int `description:"排序"`
  50. }
  51. // DataApproveDetailNodeUserRecord 审批详情-节点用户审批记录
  52. type DataApproveDetailNodeUserRecord struct {
  53. DataApproveRecordId int `description:"审批记录ID"`
  54. State int `description:"审批状态:1-待审批;2-已审批;3-已驳回;4-已撤回"`
  55. ApproveUserId int `description:"审批人ID"`
  56. ApproveUserName string `description:"审批人姓名"`
  57. ApproveRemark string `description:"审批备注"`
  58. ApproveTime string `description:"审批时间"`
  59. }
  60. type DataApproveItemOrmResp struct {
  61. DataApproveId int `description:"审批ID"`
  62. DataApproveRecordId int `description:"审批记录ID"`
  63. Title string `description:"审批标题"`
  64. DataType int `description:"自查类型"`
  65. State int `description:"审批状态:1-待审批;2-已审批;3-已驳回;4-已撤回"`
  66. RecordState int `description:"审批记录状态:1-待审批;2-已通过;3-已驳回"`
  67. FlowId int `description:"审批流ID"`
  68. FlowVersion int `description:"审批流版本"`
  69. StartNodeId int `description:"开始节点ID"`
  70. CurrNodeId int `description:"当前节点ID"`
  71. ApplyUserId int `description:"申请人ID"`
  72. ApplyUserName string `description:"申请人姓名"`
  73. ApproveRemark string `description:"审批备注"`
  74. ApproveTime string `description:"审批时间"`
  75. HandleTime string `description:"处理时间"`
  76. CreateTime string `description:"创建时间"`
  77. ModifyTime string `description:"修改时间"`
  78. NodeState int `description:"当前节点审批状态:1-待审批;2-已审批;3-已驳回;4-已撤回" json:"-"`
  79. NodeApproveTime string `description:"当前节点审批时间" json:"-"`
  80. }