approve.go 4.5 KB

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