OapiHrmEmployeeGetdismissionlistRequest.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.hrm.employee.getdismissionlist request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.03
  7. */
  8. class OapiHrmEmployeeGetdismissionlistRequest
  9. {
  10. /**
  11. * 第几页,从1开始
  12. **/
  13. private $current;
  14. /**
  15. * 操作人userid
  16. **/
  17. private $opUserid;
  18. /**
  19. * 一页多少数据,在1-100之间
  20. **/
  21. private $pageSize;
  22. private $apiParas = array();
  23. public function setCurrent($current)
  24. {
  25. $this->current = $current;
  26. $this->apiParas["current"] = $current;
  27. }
  28. public function getCurrent()
  29. {
  30. return $this->current;
  31. }
  32. public function setOpUserid($opUserid)
  33. {
  34. $this->opUserid = $opUserid;
  35. $this->apiParas["op_userid"] = $opUserid;
  36. }
  37. public function getOpUserid()
  38. {
  39. return $this->opUserid;
  40. }
  41. public function setPageSize($pageSize)
  42. {
  43. $this->pageSize = $pageSize;
  44. $this->apiParas["page_size"] = $pageSize;
  45. }
  46. public function getPageSize()
  47. {
  48. return $this->pageSize;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.hrm.employee.getdismissionlist";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->current,"current");
  61. RequestCheckUtil::checkNotNull($this->opUserid,"opUserid");
  62. RequestCheckUtil::checkNotNull($this->pageSize,"pageSize");
  63. }
  64. public function putOtherTextParam($key, $value) {
  65. $this->apiParas[$key] = $value;
  66. $this->$key = $value;
  67. }
  68. }