AddEndSignAttachmentRequest.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php
  2. class AddEndSignAttachmentRequest extends SdkRequest {
  3. const REQUEST_URL = "/v2/contract/forceend/addattachment"; // 附件接口地址
  4. private $contractId;
  5. private $bizId;
  6. private $tenantName;
  7. private $title;
  8. private $fileSuffix;
  9. private $file;
  10. public function getUrl() {
  11. return self::REQUEST_URL;
  12. }
  13. public function getHttpParamers() {
  14. $paramSwitcher = ParamSwitcher::instanceParam();
  15. $paramSwitcher->addParam('contractId', $this->contractId);
  16. $paramSwitcher->addParam('bizId', $this->bizId);
  17. $paramSwitcher->addParam('tenantName', $this->tenantName);
  18. $paramSwitcher->addParam('title',$this->title);
  19. $paramSwitcher->addParam('fileSuffix',$this->fileSuffix);
  20. $paramSwitcher->addParam('file',$this->file);
  21. $httpParameters = HttpParameter::httpPostParamer();
  22. $httpParameters->setParams($paramSwitcher->getParams());
  23. return $httpParameters;
  24. }
  25. /**
  26. * @return mixed
  27. */
  28. public function getContractId()
  29. {
  30. return $this->contractId;
  31. }
  32. /**
  33. * @param mixed $contractId
  34. */
  35. public function setContractId($contractId)
  36. {
  37. $this->contractId = $contractId;
  38. }
  39. /**
  40. * @return mixed
  41. */
  42. public function getBizId()
  43. {
  44. return $this->bizId;
  45. }
  46. /**
  47. * @param mixed $bizId
  48. */
  49. public function setBizId($bizId)
  50. {
  51. $this->bizId = $bizId;
  52. }
  53. /**
  54. * @return mixed
  55. */
  56. public function getTenantName()
  57. {
  58. return $this->tenantName;
  59. }
  60. /**
  61. * @param mixed $tenantName
  62. */
  63. public function setTenantName($tenantName)
  64. {
  65. $this->tenantName = $tenantName;
  66. }
  67. /**
  68. * @return mixed
  69. */
  70. public function getTitle()
  71. {
  72. return $this->title;
  73. }
  74. /**
  75. * @param mixed $title
  76. */
  77. public function setTitle($title)
  78. {
  79. $this->title = $title;
  80. }
  81. /**
  82. * @return mixed
  83. */
  84. public function getFileSuffix()
  85. {
  86. return $this->fileSuffix;
  87. }
  88. /**
  89. * @param mixed $fileSuffix
  90. */
  91. public function setFileSuffix($fileSuffix)
  92. {
  93. $this->fileSuffix = $fileSuffix;
  94. }
  95. /**
  96. * @return mixed
  97. */
  98. public function getFile()
  99. {
  100. return $this->file;
  101. }
  102. /**
  103. * @param mixed $file
  104. */
  105. public function setFile($file)
  106. {
  107. $this->file = $file;
  108. }
  109. }