ContractShorturlRequest.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. class ContractShorturlRequest extends SdkRequest {
  3. const REQUEST_URL = '/v2/contract/shorturl';
  4. private $contractId;
  5. private $bizId;
  6. private $tenantName; // 子公司名称,若使用业务ID获取访问短链接,且合同是以子公司身份创建的,则需要传递该值,用于确定合同主体
  7. private $contact;
  8. function getUrl() {
  9. return self::REQUEST_URL;
  10. }
  11. 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('contact', $this->contact);
  17. $httpParameter = HttpParameter::httpGetParamer();
  18. $httpParameter->setParams($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 getTenantName()
  53. {
  54. return $this->tenantName;
  55. }
  56. /**
  57. * @param mixed $tenantName
  58. */
  59. public function setTenantName($tenantName)
  60. {
  61. $this->tenantName = $tenantName;
  62. }
  63. /**
  64. * @return mixed
  65. */
  66. public function getContact()
  67. {
  68. return $this->contact;
  69. }
  70. /**
  71. * @param mixed $contact
  72. */
  73. public function setContact($contact)
  74. {
  75. $this->contact = $contact;
  76. }
  77. }