seal.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package seal
  2. import (
  3. "github.com/rdlucklib/rdluck_tools/paging"
  4. "hongze/hongze_mobile_admin/models/tables/contract_approval"
  5. "hongze/hongze_mobile_admin/models/tables/contract_approval_record"
  6. "hongze/hongze_mobile_admin/models/tables/seal"
  7. )
  8. //AddSealResp 新增用印返回
  9. type AddSealResp struct {
  10. SealId int `description:"用印id"`
  11. }
  12. //SealApprovalListResp 审批列表
  13. type SealApprovalListResp struct {
  14. Paging *paging.PagingItem
  15. List []*contract_approval.SealApprovalList `description:"列表数据"`
  16. }
  17. //SealDetailResp 审批列表
  18. type SealDetailResp struct {
  19. SealDetail *SealMoreResp `description:"审批单详情"`
  20. FlowNodeList [][]contract_approval_record.ContractApprovalRecord `description:"审批流"`
  21. OpButton OpButton `description:"操作权限"`
  22. }
  23. type SealMoreResp struct {
  24. *seal.Seal
  25. FileUrls []string `description:"多个附件"`
  26. }
  27. //OpButton 合同操作按钮
  28. type OpButton struct {
  29. Approval bool `description:"是否有审批权限"`
  30. Invalid bool `description:"是否有作废用印权限"`
  31. Edit bool `description:"是否有编辑用印权限"`
  32. CheckEdit bool `description:"审核状态下是否有编辑用印权限"`
  33. Cancel bool `description:"是否有撤回用印权限"`
  34. UploadFile bool `description:"是否有上传签回文件权限"`
  35. }
  36. //RespSealList 列表数据
  37. type RespSealList struct {
  38. Paging *paging.PagingItem
  39. List []*seal.Seal `description:"列表数据"`
  40. }