EmployeeDetailRequest.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. class EmployeeDetailRequest extends SdkRequest {
  3. const EMPLOYEE_UPDATE = "/v2/employee/detail"; // 员工信息修改接口地址
  4. private $user;
  5. private $tenantName;
  6. public function getUrl() {
  7. return self::EMPLOYEE_UPDATE;
  8. }
  9. public function getHttpParamers() {
  10. $paramSwitcher = ParamSwitcher::instanceParam();
  11. $paramSwitcher->addParam('user', $this->user);
  12. $paramSwitcher->addParam('tenantName', $this->tenantName);
  13. $httpParameters = HttpParameter::httpPostParamer();
  14. $httpParameters->setJsonParams(json_encode($paramSwitcher->getParams()));
  15. return $httpParameters;
  16. }
  17. /**
  18. * @return mixed
  19. */
  20. public function getUser()
  21. {
  22. return $this->user;
  23. }
  24. /**
  25. * @param mixed $user
  26. */
  27. public function setUser($user)
  28. {
  29. $this->user = $user;
  30. }
  31. /**
  32. * @return mixed
  33. */
  34. public function getTenantName()
  35. {
  36. return $this->tenantName;
  37. }
  38. /**
  39. * @param mixed $tenantName
  40. */
  41. public function setTenantName($tenantName)
  42. {
  43. $this->tenantName = $tenantName;
  44. }
  45. }