DpListController.class.php
912 Bytes
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
<?php
/**
* 获取部门列表
*
*/
namespace Apicp\Controller\Contact;
class DpListController extends AbstractController
{
public function Index()
{
return $this->_result = array();
}
public function Test()
{
// 返回值
$result = $this->result();
return $this->_result = $result;
}
public function result()
{
// 构造返回值
$result = array(
'list' => array(
array(
'dpId' => "72A15A2A7F0000016C05A24F56B28853",
'dpName' => "开发中心",
'dpMem' => 10,
),
array(
'dpId' => "72A15A327F0000016C05A24F5BF12FB6",
'dpName' => "西安组",
'dpMem' => 10,
),
)
);
return $result;
}
}