ContractMiniappTicketRequest.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. class ContractMiniappTicketRequest extends SdkRequest {
  3. const PAGE_URL = "/v2/contract/miniappexchange";
  4. private $contractId;
  5. private $bizId;
  6. private $tenantName;
  7. private $user;
  8. public function getUrl() {
  9. return self::PAGE_URL;
  10. }
  11. public function getHttpParamers() {
  12. $paramSwitcher = ParamSwitcher::instanceParam();
  13. $paramSwitcher->addParam('contractId', $this->contractId);
  14. $paramSwitcher->addParam('bizId',$this->bizId);
  15. $paramSwitcher->addParam('tenantName',$this->tenantName);
  16. $paramSwitcher->addParam('user', $this->user);
  17. $httpParameter = HttpParameter::httpPostParamer();
  18. $httpParameter->setJsonParams(json_encode($paramSwitcher->getParams()));
  19. return $httpParameter;
  20. }
  21. /**
  22. * @return mixed
  23. */
  24. public function getContractId()
  25. {
  26. return $this->contractId;
  27. }
  28. /**
  29. * @param mixed $contractId
  30. */
  31. public function setContractId($contractId)
  32. {
  33. $this->contractId = $contractId;
  34. }
  35. /**
  36. * @return mixed
  37. */
  38. public function getBizId()
  39. {
  40. return $this->bizId;
  41. }
  42. /**
  43. * @param mixed $bizId
  44. */
  45. public function setBizId($bizId)
  46. {
  47. $this->bizId = $bizId;
  48. }
  49. /**
  50. * @return mixed
  51. */
  52. public function getUser()
  53. {
  54. return $this->user;
  55. }
  56. /**
  57. * @param mixed $user
  58. */
  59. public function setUser($user)
  60. {
  61. $this->user = $user;
  62. }
  63. /**
  64. * @return mixed
  65. */
  66. public function getTenantName()
  67. {
  68. return $this->tenantName;
  69. }
  70. /**
  71. * @param mixed $tenantName
  72. */
  73. public function setTenantName($tenantName)
  74. {
  75. $this->tenantName = $tenantName;
  76. }
  77. }