EmployeeUpdateRequest.php 1.4 KB

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