123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- class EmployeeDetailRequest extends SdkRequest {
- const EMPLOYEE_UPDATE = "/v2/employee/detail"; // 员工信息修改接口地址
- private $user;
- private $tenantName;
- public function getUrl() {
- return self::EMPLOYEE_UPDATE;
- }
- public function getHttpParamers() {
- $paramSwitcher = ParamSwitcher::instanceParam();
- $paramSwitcher->addParam('user', $this->user);
- $paramSwitcher->addParam('tenantName', $this->tenantName);
- $httpParameters = HttpParameter::httpPostParamer();
- $httpParameters->setJsonParams(json_encode($paramSwitcher->getParams()));
- return $httpParameters;
- }
- /**
- * @return mixed
- */
- public function getUser()
- {
- return $this->user;
- }
- /**
- * @param mixed $user
- */
- public function setUser($user)
- {
- $this->user = $user;
- }
- /**
- * @return mixed
- */
- public function getTenantName()
- {
- return $this->tenantName;
- }
- /**
- * @param mixed $tenantName
- */
- public function setTenantName($tenantName)
- {
- $this->tenantName = $tenantName;
- }
- }
|