SaasPrivilegeDetailRequest.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. class SaasPrivilegeDetailRequest extends SdkRequest {
  3. const REQUEST_URL = "/saas/v2/privilege/query";
  4. private $appId;
  5. private $companyId;
  6. public function getUrl() {
  7. return self::REQUEST_URL;
  8. }
  9. public function getHttpParamers() {
  10. $paramSwitcher = ParamSwitcher::instanceParam();
  11. $paramSwitcher->addParam('appId', $this->appId);
  12. $paramSwitcher->addParam('companyId', $this->companyId);
  13. $httpParameters = HttpParameter::httpGetParamer();
  14. $httpParameters->setParams($paramSwitcher->getParams());
  15. return $httpParameters;
  16. }
  17. /**
  18. * @return mixed
  19. */
  20. public function getAppId()
  21. {
  22. return $this->appId;
  23. }
  24. /**
  25. * @return mixed
  26. */
  27. public function getCompanyId()
  28. {
  29. return $this->companyId;
  30. }
  31. /**
  32. * @param mixed $appId
  33. */
  34. public function setAppId($appId)
  35. {
  36. $this->appId = $appId;
  37. }
  38. /**
  39. * @param mixed $companyId
  40. */
  41. public function setCompanyId($companyId)
  42. {
  43. $this->companyId = $companyId;
  44. }
  45. }