bi_approve.go 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. package response
  2. // BiApproveDetail 审批详情信息
  3. type BiApproveDetail struct {
  4. Bi *BiApproveDetailBi `description:"报告信息"`
  5. Approve *BiApproveDetailItem `description:"审批信息"`
  6. ApproveFlowNodes []*BiApproveDetailNodes `description:"审批节点信息"`
  7. }
  8. // BiApproveDetailBi 审批详情-报告信息
  9. type BiApproveDetailBi struct {
  10. BiId int `description:"看板ID"`
  11. BiTitle string `description:"看板标题"`
  12. BiCode string `description:"看板code"`
  13. BiClassify string `description:"看板分类"`
  14. }
  15. // BiApproveDetailItem 审批详情-审批信息
  16. type BiApproveDetailItem struct {
  17. BiApproveId 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. // BiApproveDetailNodes 审批详情-节点信息
  30. type BiApproveDetailNodes struct {
  31. BiApproveNodeId int `description:"看板审批节点ID"`
  32. BiApproveFlowId 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 []*BiApproveDetailNodeUser `description:"审批人信息"`
  38. }
  39. // BiApproveDetailNodeUser 审批详情-节点用户信息
  40. type BiApproveDetailNodeUser struct {
  41. BiApproveNodeUserReq
  42. ApproveRecord *BiApproveDetailNodeUserRecord `description:"用户审批记录"`
  43. }
  44. // BiApproveNodeUserReq 报告审批节点用户请求体
  45. type BiApproveNodeUserReq struct {
  46. UserType string `description:"审批人类型: user-用户; role-角色"`
  47. UserId int `description:"用户/角色ID"`
  48. UserName string `description:"用户/角色姓名"`
  49. Sort int `description:"排序"`
  50. }
  51. // BiApproveDetailNodeUserRecord 审批详情-节点用户审批记录
  52. type BiApproveDetailNodeUserRecord struct {
  53. BiApproveRecordId 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 BiApproveItemOrmResp struct {
  61. BiApproveId int `description:"审批ID"`
  62. BiApproveRecordId int `description:"审批记录ID"`
  63. BiId int `description:"报告ID"`
  64. BiTitle string `description:"报告标题"`
  65. ClassifyId int `description:"分类ID"`
  66. ClassifyName string `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. }