Blame view

addons/antis/library/dingding/dingtalk/request/OapiUserSimplelistRequest.php 2.14 KB
2db47680   hexiaodong   chore: 初始提交 php 遗...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
  <?php
  /**
   * dingtalk API: dingtalk.oapi.user.simplelist request
   * 
   * @author auto create
   * @since 1.0, 2018.08.13
   */
  class OapiUserSimplelistRequest
  {

  	/** 

  	 * 获取的部门id

  	 **/

  	private $departmentId;

  	

  	/** 

  	 * 通讯录语言(默认zh_CN另外支持en_US)

  	 **/

  	private $lang;

  	

  	/** 

  	 * 支持分页查询,与size参数同时设置时才生效,此参数代表偏移量

  	 **/

  	private $offset;

  	

  	/** 

  	 * 支持分页查询,部门成员的排序规则,默认不传是按自定义排序;entry_asc代表按照进入部门的时间升序,entry_desc代表按照进入部门的时间降序,modify_asc代表按照部门信息修改时间升序,modify_desc代表按照部门信息修改时间降序,custom代表用户定义(未定义时按照拼音)排序

  	 **/

  	private $order;

  	

  	/** 

  	 * 支持分页查询,与offset参数同时设置时才生效,此参数代表分页大小,最大100

  	 **/

  	private $size;
  	
  	private $apiParas = array();
  	

  	public function setDepartmentId($departmentId)
  	{

  		$this->departmentId = $departmentId;

  		$this->apiParas["department_id"] = $departmentId;

  	}
  

  	public function getDepartmentId()
  	{

  		return $this->departmentId;

  	}
  

  	public function setLang($lang)
  	{

  		$this->lang = $lang;

  		$this->apiParas["lang"] = $lang;

  	}
  

  	public function getLang()
  	{

  		return $this->lang;

  	}
  

  	public function setOffset($offset)
  	{

  		$this->offset = $offset;

  		$this->apiParas["offset"] = $offset;

  	}
  

  	public function getOffset()
  	{

  		return $this->offset;

  	}
  

  	public function setOrder($order)
  	{

  		$this->order = $order;

  		$this->apiParas["order"] = $order;

  	}
  

  	public function getOrder()
  	{

  		return $this->order;

  	}
  

  	public function setSize($size)
  	{

  		$this->size = $size;

  		$this->apiParas["size"] = $size;

  	}
  

  	public function getSize()
  	{

  		return $this->size;

  	}
  
  	public function getApiMethodName()
  	{
  		return "dingtalk.oapi.user.simplelist";
  	}
  	
  	public function getApiParas()
  	{
  		return $this->apiParas;
  	}
  	
  	public function check()
  	{
  		
  	}
  	
  	public function putOtherTextParam($key, $value) {
  		$this->apiParas[$key] = $value;
  		$this->$key = $value;
  	}
  }