OapiDepartmentListRequest.php
1.29 KB
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
<?php
/**
* dingtalk API: dingtalk.oapi.department.list request
*
* @author auto create
* @since 1.0, 2019.12.17
*/
class OapiDepartmentListRequest
{
/**
* 是否递归部门的全部子部门,ISV微应用固定传递false。
**/
private $fetchChild;
/**
* 父部门id(如果不传,默认部门为根部门,根部门ID为1)
**/
private $id;
/**
* 通讯录语言(默认zh_CN,未来会支持en_US)
**/
private $lang;
private $apiParas = array();
public function setFetchChild($fetchChild)
{
$this->fetchChild = $fetchChild;
$this->apiParas["fetch_child"] = $fetchChild;
}
public function getFetchChild()
{
return $this->fetchChild;
}
public function setId($id)
{
$this->id = $id;
$this->apiParas["id"] = $id;
}
public function getId()
{
return $this->id;
}
public function setLang($lang)
{
$this->lang = $lang;
$this->apiParas["lang"] = $lang;
}
public function getLang()
{
return $this->lang;
}
public function getApiMethodName()
{
return "dingtalk.oapi.department.list";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}