contract.go 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package response
  2. import (
  3. "github.com/rdlucklib/rdluck_tools/paging"
  4. "hongze/hz_crm_api/models/company"
  5. "hongze/hz_crm_api/models/contract"
  6. "time"
  7. )
  8. type AddContractResp struct {
  9. ContractId int `description:"合同id"`
  10. }
  11. // ContractListResp 合同列表数据
  12. type ContractListResp struct {
  13. Paging *paging.PagingItem
  14. List []*contract.ContractList `description:"列表数据"`
  15. }
  16. type ContractOperationListResp struct {
  17. List []ContractOperationRecordListResp `description:"列表数据"`
  18. }
  19. type ContractOperationRecordListResp struct {
  20. Id int ``
  21. ContractId int `description:"合同id"`
  22. Operation string `description:"操作类型,add:新增,edit:编辑,apply:发起审批,cancel_apply:撤回审批,reject:拒绝审批,approval:审批操作;长度36位"`
  23. OpUserId int `description:"操作人id"`
  24. OpUserName string `description:"操作人名称"`
  25. Remark string `description:"备注,长度255位"`
  26. ApprovalRecordId int `orm:"column(approval_record_id)";description:"审批流id"`
  27. CreateTime time.Time `description:"日志添加时间"`
  28. CreateTimeStr string `description:"日志添加时间"`
  29. }
  30. // 审批列表
  31. type ContractApprovalListResp struct {
  32. Paging *paging.PagingItem
  33. List []*contract.ContractApprovalList `description:"列表数据"`
  34. }
  35. // 合同预览的html数据返回
  36. type ContractPreviewResp struct {
  37. Html string `description:"合同预览的html数据"`
  38. }
  39. // 申请转正、服务更新时的合同详情
  40. type ContractApplyDetailResp struct {
  41. ContractDetail *contract.ContractDetail `description:"合同数据"`
  42. PermissionList []*company.PermissionLookList `description:"权限列表"`
  43. }
  44. // 用印审批搜索的合同列表
  45. type ContractListBySealResp struct {
  46. ContractId int `description:"合同ID"`
  47. ContractCode string `description:"合同编号,长度32位"`
  48. ContractBusinessType string `description:"合同业务类型,枚举值:'业务合同','代付合同'"`
  49. ContractType string `description:"合同类型,枚举值:'新签合同','续约合同','补充协议'"`
  50. CompanyName string `description:"客户名称,甲方名称,长度32位"`
  51. UserCompanyName string `description:"实际使用方"`
  52. CreditCode string `description:"社会统一信用代码"`
  53. Price float64 `description:"实际金额,优惠后的金额"`
  54. FileUrl string `description:"合同文件地址"`
  55. }