seal.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package response
  2. import (
  3. "github.com/rdlucklib/rdluck_tools/paging"
  4. "hongze/hz_crm_api/models/contract"
  5. "hongze/hz_crm_api/models/seal"
  6. )
  7. // 用印申请列表数据
  8. type SealApprovalListResp struct {
  9. Paging *paging.PagingItem
  10. List []*SealApprovalList `description:"列表数据"`
  11. }
  12. // 用印操作日志列表数据
  13. type SealOperationListResp struct {
  14. List []*seal.SealOperationRecordList `description:"列表数据"`
  15. }
  16. // 用印审批操作按钮
  17. type SealApprovalOpButton struct {
  18. Approval bool `description:"是否有审批权限"`
  19. Invalid bool `description:"是否有作废用印权限"`
  20. Edit bool `description:"是否有编辑用印权限"`
  21. CheckEdit bool `description:"审核状态下是否有编辑用印权限"`
  22. Cancel bool `description:"是否有撤回用印权限"`
  23. UploadFile bool `description:"是否有上传签回文件权限"`
  24. }
  25. type SealApprovalList struct {
  26. *seal.SealApprovalItem
  27. OpButton SealApprovalOpButton
  28. }
  29. type SealMoreResp struct {
  30. *seal.Seal
  31. FileUrls []string `description:"多个附件"`
  32. }
  33. type SealApprovalDetail struct {
  34. SealDetail *SealMoreResp
  35. FlowNodeList [][]contract.ContractApprovalRecord `description:"审批流"`
  36. OpButton SealApprovalOpButton `description:"操作权限"`
  37. }