ContractListRequest.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?php
  2. class ContractListRequest extends SdkRequest {
  3. const REQUEST_URL = '/v2/contract/list';
  4. private $status;
  5. private $selectOffset;
  6. private $selectLimit;
  7. private $tenantName;
  8. private $createTimeOrder;
  9. private $categoryId;
  10. private $categoryName;
  11. private $publishTimeStart;
  12. private $publishTimeEnd;
  13. function getUrl() {
  14. return self::REQUEST_URL;
  15. }
  16. function getHttpParamers() {
  17. $paramSwitcher = ParamSwitcher::instanceParam();
  18. $paramSwitcher->addParam('status',$this->status);
  19. $paramSwitcher->addParam('selectOffset',$this->selectOffset);
  20. $paramSwitcher->addParam('selectLimit',$this->selectLimit);
  21. $paramSwitcher->addParam('tenantName',$this->tenantName);
  22. $paramSwitcher->addParam('createTimeOrder',$this->createTimeOrder);
  23. $paramSwitcher->addParam('categoryId',$this->categoryId);
  24. $paramSwitcher->addParam('categoryName',$this->categoryName);
  25. $paramSwitcher->addParam('publishTimeStart',$this->publishTimeStart);
  26. $paramSwitcher->addParam('publishTimeEnd',$this->publishTimeEnd);
  27. $httpParameter = HttpParameter::httpGetParamer();
  28. $httpParameter->setParams($paramSwitcher->getParams());
  29. return $httpParameter;
  30. }
  31. /**
  32. * @return mixed
  33. */
  34. public function getStatus()
  35. {
  36. return $this->status;
  37. }/**
  38. * @param mixed $status
  39. */
  40. public function setStatus($status)
  41. {
  42. $this->status = $status;
  43. }/**
  44. * @return mixed
  45. */
  46. public function getSelectOffset()
  47. {
  48. return $this->selectOffset;
  49. }/**
  50. * @param mixed $selectOffset
  51. */
  52. public function setSelectOffset($selectOffset)
  53. {
  54. $this->selectOffset = $selectOffset;
  55. }/**
  56. * @return mixed
  57. */
  58. public function getSelectLimit()
  59. {
  60. return $this->selectLimit;
  61. }/**
  62. * @param mixed $selectLimit
  63. */
  64. public function setSelectLimit($selectLimit)
  65. {
  66. $this->selectLimit = $selectLimit;
  67. }/**
  68. * @return mixed
  69. */
  70. public function getTenantName()
  71. {
  72. return $this->tenantName;
  73. }/**
  74. * @param mixed $tenantName
  75. */
  76. public function setTenantName($tenantName)
  77. {
  78. $this->tenantName = $tenantName;
  79. }/**
  80. * @return mixed
  81. */
  82. public function getCreateTimeOrder()
  83. {
  84. return $this->createTimeOrder;
  85. }/**
  86. * @param mixed $createTimeOrder
  87. */
  88. public function setCreateTimeOrder($createTimeOrder)
  89. {
  90. $this->createTimeOrder = $createTimeOrder;
  91. }/**
  92. * @return mixed
  93. */
  94. public function getCategoryId()
  95. {
  96. return $this->categoryId;
  97. }/**
  98. * @param mixed $categoryId
  99. */
  100. public function setCategoryId($categoryId)
  101. {
  102. $this->categoryId = $categoryId;
  103. }/**
  104. * @return mixed
  105. */
  106. public function getCategoryName()
  107. {
  108. return $this->categoryName;
  109. }/**
  110. * @param mixed $categoryName
  111. */
  112. public function setCategoryName($categoryName)
  113. {
  114. $this->categoryName = $categoryName;
  115. }
  116. /**
  117. * @return mixed
  118. */
  119. public function getPublishTimeStart()
  120. {
  121. return $this->publishTimeStart;
  122. }
  123. /**
  124. * @param mixed $publishTimeStart
  125. */
  126. public function setPublishTimeStart($publishTimeStart)
  127. {
  128. $this->publishTimeStart = $publishTimeStart;
  129. }
  130. /**
  131. * @return mixed
  132. */
  133. public function getPublishTimeEnd()
  134. {
  135. return $this->publishTimeEnd;
  136. }
  137. /**
  138. * @param mixed $publishTimeEnd
  139. */
  140. public function setPublishTimeEnd($publishTimeEnd)
  141. {
  142. $this->publishTimeEnd = $publishTimeEnd;
  143. }
  144. }