123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <?php
- class SaasPrivilegeUrlRequest extends SdkRequest {
- const REQUEST_URL = "/saas/v2/privilege/url";
- private $appId;
- private $companyId;
- private $user;
- private $createToken;
- private $successUrl;
- private $callbackUrl;
- private $privilegeModules;
- public function getUrl() {
- return self::REQUEST_URL;
- }
- public function getHttpParamers() {
- $paramSwitcher = ParamSwitcher::instanceParam();
- $paramSwitcher->addParam('appId', $this->appId);
- $paramSwitcher->addParam('companyId', $this->companyId);
- $paramSwitcher->addParam('user', $this->user);
- $paramSwitcher->addParam('createToken',$this->createToken);
- $paramSwitcher->addParam('successUrl',$this->successUrl);
- $paramSwitcher->addParam('callbackUrl',$this->callbackUrl);
- $paramSwitcher->addParam('privilegeModules',$this->privilegeModules);
- $httpParameters = HttpParameter::httpPostParamer();
- $httpParameters->setJsonParams(json_encode($paramSwitcher->getParams()));
- return $httpParameters;
- }
- /**
- * @return mixed
- */
- public function getAppId()
- {
- return $this->appId;
- }
- /**
- * @param mixed $appId
- */
- public function setAppId($appId)
- {
- $this->appId = $appId;
- }
- /**
- * @return mixed
- */
- public function getCompanyId()
- {
- return $this->companyId;
- }
- /**
- * @param mixed $companyId
- */
- public function setCompanyId($companyId)
- {
- $this->companyId = $companyId;
- }
- /**
- * @return mixed
- */
- public function getUser()
- {
- return $this->user;
- }
- /**
- * @param mixed $user
- */
- public function setUser($user)
- {
- $this->user = $user;
- }
- /**
- * @return mixed
- */
- public function getCreateToken()
- {
- return $this->createToken;
- }
- /**
- * @param mixed $createToken
- */
- public function setCreateToken($createToken)
- {
- $this->createToken = $createToken;
- }
- /**
- * @return mixed
- */
- public function getSuccessUrl()
- {
- return $this->successUrl;
- }
- /**
- * @param mixed $successUrl
- */
- public function setSuccessUrl($successUrl)
- {
- $this->successUrl = $successUrl;
- }
- /**
- * @return mixed
- */
- public function getCallbackUrl()
- {
- return $this->callbackUrl;
- }
- /**
- * @param mixed $callbackUrl
- */
- public function setCallbackUrl($callbackUrl)
- {
- $this->callbackUrl = $callbackUrl;
- }
-
- /**
- * @return mixed
- */
- public function getPrivilegeModules()
- {
- return $this->privilegeModules;
- }
-
- /**
- * @param mixed $privilegeModules
- */
- public function setPrivilegeModules($privilegeModules)
- {
- $this->privilegeModules = $privilegeModules;
- }
- }
|