DocumentAddByMultipleFileRequest.php 2.3 KB

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