OapiSmartworkHrmEmployeeQuerypreentryRequest.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.smartwork.hrm.employee.querypreentry request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.01
  7. */
  8. class OapiSmartworkHrmEmployeeQuerypreentryRequest
  9. {
  10. /**
  11. * 分页起始值,默认0开始
  12. **/
  13. private $offset;
  14. /**
  15. * 分页大小,最大50
  16. **/
  17. private $size;
  18. private $apiParas = array();
  19. public function setOffset($offset)
  20. {
  21. $this->offset = $offset;
  22. $this->apiParas["offset"] = $offset;
  23. }
  24. public function getOffset()
  25. {
  26. return $this->offset;
  27. }
  28. public function setSize($size)
  29. {
  30. $this->size = $size;
  31. $this->apiParas["size"] = $size;
  32. }
  33. public function getSize()
  34. {
  35. return $this->size;
  36. }
  37. public function getApiMethodName()
  38. {
  39. return "dingtalk.oapi.smartwork.hrm.employee.querypreentry";
  40. }
  41. public function getApiParas()
  42. {
  43. return $this->apiParas;
  44. }
  45. public function check()
  46. {
  47. RequestCheckUtil::checkNotNull($this->offset,"offset");
  48. RequestCheckUtil::checkMinValue($this->offset,0,"offset");
  49. RequestCheckUtil::checkNotNull($this->size,"size");
  50. RequestCheckUtil::checkMaxValue($this->size,50,"size");
  51. RequestCheckUtil::checkMinValue($this->size,1,"size");
  52. }
  53. public function putOtherTextParam($key, $value) {
  54. $this->apiParas[$key] = $value;
  55. $this->$key = $value;
  56. }
  57. }