CustomListController.class.php
1.26 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
<?php
/**
* 获取成员属性列表接口
*
*/
namespace Apicp\Controller\Contact;
class CustomListController extends AbstractController
{
public function Index()
{
return $this->_result = array();
}
public function Test()
{
// 返回值
$result = $this->result();
return $this->_result = $result;
}
public function result()
{
// 构造返回值
$result = array(
'total' => 2,
'page' => 1,
'limit' => 12,
'list' => array(
array(
'fieldName' => "mem_ext1",
'level' => 3,
'name' => "职位",
'number' => 12,
'open' => 1,
'required' => 0,
'type' => 1,
'view' => 0,
),
array(
'fieldName' => "mem_ext2",
'level' => 3,
'name' => "岗位",
'number' => 12,
'open' => 1,
'required' => 0,
'type' => 1,
'view' => 0,
),
)
);
return $result;
}
}