ContractViewPageRequest.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. class ContractViewPageRequest extends SdkRequest {
  3. const VIEW_PAGE_URL = "/v2/contract/viewurl";
  4. private $contractId;
  5. private $bizId;
  6. private $tenantName;
  7. public function getUrl() {
  8. return self::VIEW_PAGE_URL;
  9. }
  10. public function getHttpParamers() {
  11. $paramSwitcher = ParamSwitcher::instanceParam();
  12. $paramSwitcher->addParam('contractId', $this->contractId);
  13. $paramSwitcher->addParam('bizId',$this->bizId);
  14. $paramSwitcher->addParam('tenantName;',$this->tenantName);
  15. $httpParameter = HttpParameter::httpGetParamer();
  16. $httpParameter->setParams($paramSwitcher->getParams());
  17. return $httpParameter;
  18. }
  19. /**
  20. * @return mixed
  21. */
  22. public function getContractId()
  23. {
  24. return $this->contractId;
  25. }
  26. /**
  27. * @param mixed $contractId
  28. */
  29. public function setContractId($contractId)
  30. {
  31. $this->contractId = $contractId;
  32. }
  33. /**
  34. * @return mixed
  35. */
  36. public function getBizId()
  37. {
  38. return $this->bizId;
  39. }
  40. /**
  41. * @param mixed $bizId
  42. */
  43. public function setBizId($bizId)
  44. {
  45. $this->bizId = $bizId;
  46. }
  47. /**
  48. * @return mixed
  49. */
  50. public function getTenantName()
  51. {
  52. return $this->tenantName;
  53. }
  54. /**
  55. * @param mixed $tenantName
  56. */
  57. public function setTenantName($tenantName)
  58. {
  59. $this->tenantName = $tenantName;
  60. }
  61. }