OapiUserSimplelistRequest.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.user.simplelist request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018.08.13
  7. */
  8. class OapiUserSimplelistRequest
  9. {
  10. /**
  11. * 获取的部门id
  12. **/
  13. private $departmentId;
  14. /**
  15. * 通讯录语言(默认zh_CN另外支持en_US)
  16. **/
  17. private $lang;
  18. /**
  19. * 支持分页查询,与size参数同时设置时才生效,此参数代表偏移量
  20. **/
  21. private $offset;
  22. /**
  23. * 支持分页查询,部门成员的排序规则,默认不传是按自定义排序;entry_asc代表按照进入部门的时间升序,entry_desc代表按照进入部门的时间降序,modify_asc代表按照部门信息修改时间升序,modify_desc代表按照部门信息修改时间降序,custom代表用户定义(未定义时按照拼音)排序
  24. **/
  25. private $order;
  26. /**
  27. * 支持分页查询,与offset参数同时设置时才生效,此参数代表分页大小,最大100
  28. **/
  29. private $size;
  30. private $apiParas = array();
  31. public function setDepartmentId($departmentId)
  32. {
  33. $this->departmentId = $departmentId;
  34. $this->apiParas["department_id"] = $departmentId;
  35. }
  36. public function getDepartmentId()
  37. {
  38. return $this->departmentId;
  39. }
  40. public function setLang($lang)
  41. {
  42. $this->lang = $lang;
  43. $this->apiParas["lang"] = $lang;
  44. }
  45. public function getLang()
  46. {
  47. return $this->lang;
  48. }
  49. public function setOffset($offset)
  50. {
  51. $this->offset = $offset;
  52. $this->apiParas["offset"] = $offset;
  53. }
  54. public function getOffset()
  55. {
  56. return $this->offset;
  57. }
  58. public function setOrder($order)
  59. {
  60. $this->order = $order;
  61. $this->apiParas["order"] = $order;
  62. }
  63. public function getOrder()
  64. {
  65. return $this->order;
  66. }
  67. public function setSize($size)
  68. {
  69. $this->size = $size;
  70. $this->apiParas["size"] = $size;
  71. }
  72. public function getSize()
  73. {
  74. return $this->size;
  75. }
  76. public function getApiMethodName()
  77. {
  78. return "dingtalk.oapi.user.simplelist";
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function check()
  85. {
  86. }
  87. public function putOtherTextParam($key, $value) {
  88. $this->apiParas[$key] = $value;
  89. $this->$key = $value;
  90. }
  91. }