contract.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package contract
  2. import (
  3. "github.com/rdlucklib/rdluck_tools/paging"
  4. "hongze/hongze_mobile_admin/models/tables/contract"
  5. "hongze/hongze_mobile_admin/models/tables/contract_approval"
  6. "hongze/hongze_mobile_admin/models/tables/contract_approval_record"
  7. "time"
  8. )
  9. type ContractListResp struct {
  10. Paging *paging.PagingItem
  11. List []*contract.ContractList `description:"列表数据"`
  12. }
  13. type ContractListRespV2 struct {
  14. Paging *paging.PagingItem
  15. List []*contract_approval.ContractApprovalList `description:"列表数据"`
  16. }
  17. type ContractOperationRecordListResp struct {
  18. Id int ``
  19. ContractId int `description:"合同id"`
  20. Operation string `description:"操作类型,add:新增,edit:编辑,apply:发起审批,cancel_apply:撤回审批,reject:拒绝审批,approval:审批操作;长度36位"`
  21. OpUserId int `description:"操作人id"`
  22. OpUserName string `description:"操作人名称"`
  23. Remark string `description:"备注,长度255位"`
  24. ApprovalRecordId int `orm:"column(approval_record_id)" description:"审批流id"`
  25. CreateTime time.Time `description:"日志添加时间"`
  26. CreateTimeStr string `description:"日志添加时间"`
  27. }
  28. //审批列表
  29. type ContractApprovalListResp struct {
  30. Paging *paging.PagingItem
  31. List []*contract_approval.ContractApprovalList `description:"列表数据"`
  32. }
  33. //审批列表
  34. type ContractDetailResp struct {
  35. ContractDetail *contract.ContractDetail `description:"审批单详情"`
  36. FlowNodeList [][]contract_approval_record.ContractApprovalRecord `description:"审批流"`
  37. OpButton OpButton `description:"操作权限"`
  38. }
  39. //合同操作按钮
  40. type OpButton struct {
  41. Approval bool `description:"是否有审批权限"`
  42. UploadFile bool `description:"是否有上传签回文件权限"`
  43. Invalid bool `description:"是否有作废合同权限"`
  44. }