SealListRequest.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. class SealListRequest extends SdkRequest {
  3. const SEAL_LIST = "/v2/seal/list"; // 印章列表接口地址
  4. private $selectOffset; // 查询起始位置,默认为0
  5. private $selectLimit; // 查询列表大小,默认1000
  6. private $tenantName; // 子公司名称,若传递了则查询子公司下的印章,默认为平台方主公司
  7. public function __construct() {
  8. $count = func_num_args();
  9. $args=func_get_args();
  10. if (method_exists($this,$f='__construct'.$count)) {
  11. call_user_func_array(array($this,$f),$args);
  12. }
  13. }
  14. public function __construct0() {
  15. }
  16. /**
  17. * SealListRequest constructor.
  18. * @param $selectOffset
  19. * @param $selectLimit
  20. */
  21. public function __construct2($selectOffset, $selectLimit) {
  22. $this->selectOffset = $selectOffset;
  23. $this->selectLimit = $selectLimit;
  24. }
  25. public function getUrl() {
  26. return self::SEAL_LIST;
  27. }
  28. public function getHttpParamers() {
  29. $paramSwitcher = ParamSwitcher::instanceParam();
  30. $paramSwitcher->addParam('selectOffset', $this->selectOffset);
  31. $paramSwitcher->addParam('selectLimit', $this->selectLimit);
  32. $paramSwitcher->addParam('tenantName', $this->tenantName);
  33. $httpParameters = HttpParameter::httpGetParamer();
  34. $httpParameters->setParams($paramSwitcher->getParams());
  35. return $httpParameters;
  36. }
  37. /**
  38. * @return mixed
  39. */
  40. public function getSelectOffset()
  41. {
  42. return $this->selectOffset;
  43. }
  44. /**
  45. * @param mixed $selectOffset
  46. */
  47. public function setSelectOffset($selectOffset)
  48. {
  49. $this->selectOffset = $selectOffset;
  50. }
  51. /**
  52. * @return mixed
  53. */
  54. public function getSelectLimit()
  55. {
  56. return $this->selectLimit;
  57. }
  58. /**
  59. * @param mixed $selectLimit
  60. */
  61. public function setSelectLimit($selectLimit)
  62. {
  63. $this->selectLimit = $selectLimit;
  64. }
  65. /**
  66. * @return mixed
  67. */
  68. public function getTenantName()
  69. {
  70. return $this->tenantName;
  71. }
  72. /**
  73. * @param mixed $tenantName
  74. */
  75. public function setTenantName($tenantName)
  76. {
  77. $this->tenantName = $tenantName;
  78. }
  79. }