ContractSignUserRequest.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php
  2. class ContractSignUserRequest extends SdkRequest {
  3. const COMPANYSIGN_URL = "/v2/contract/personalsign";
  4. private $contractId;
  5. private $bizId;
  6. private $tenantName;
  7. private $sealId;
  8. private $stampers;
  9. private $user;
  10. public function getUrl() {
  11. return self::COMPANYSIGN_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('sealId', $this->sealId);
  19. $paramSwitcher->addParam('stampers', $this->stampers);
  20. $paramSwitcher->addParam('user', $this->user);
  21. $httpParameter = HttpParameter::httpPostParamer();
  22. $httpParameter->setJsonParams(json_encode($paramSwitcher->getParams()));
  23. return $httpParameter;
  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 getStampers()
  57. {
  58. return $this->stampers;
  59. }
  60. /**
  61. * @param mixed $stampers
  62. */
  63. public function setStampers($stampers)
  64. {
  65. $this->stampers = $stampers;
  66. }
  67. /**
  68. * @return mixed
  69. */
  70. public function getTenantName()
  71. {
  72. return $this->tenantName;
  73. }
  74. /**
  75. * @param mixed $tenantName
  76. */
  77. public function setTenantName($tenantName)
  78. {
  79. $this->tenantName = $tenantName;
  80. }
  81. /**
  82. * @return mixed
  83. */
  84. public function getSealId()
  85. {
  86. return $this->sealId;
  87. }
  88. /**
  89. * @param mixed $sealId
  90. */
  91. public function setSealId($sealId)
  92. {
  93. $this->sealId = $sealId;
  94. }
  95. /**
  96. * @return mixed
  97. */
  98. public function getUser()
  99. {
  100. return $this->user;
  101. }
  102. /**
  103. * @param mixed $user
  104. */
  105. public function setUser($user)
  106. {
  107. $this->user = $user;
  108. }
  109. }