SensitiveMemListController.class.php
2.73 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
/**
* 敏感成员列表接口
*
*/
namespace Apicp\Controller\Contact;
class SensitiveMemListController 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(
'sensitiveId' => "72A15A2A7F0000016C05A24F56B28853",
'tags' => array(
array(
'tagId' => '78D54AFE7F00000162CAAD4E37AC9624',
'TagName' => '总部'
),
array(
'tagId' => '78D54AFE7F00000162CAAD4E37AC9624',
'TagName' => '技术部'
),
),
'dps' => array(
array(
'id' => '78D54AFE7F00000162CAAD4E37AC9624',
'name' => '技术部',
'isChecked' => true
),
array(
'id' => '78D54AFE7F00000162CAAD4E37AC9624',
'name' => '技术部1',
'isChecked' => true
)
),
'mems' => array(
array(
'm_uid' => '78D54AFE7F00000162CAAD4E37AC9624',
'm_username' => '张总',
'selected' => true
)
),
'data' => array(
array(
'fieldName' => "address",
'level' => 3,
'name' => "地址",
'number' => 1,
'open' => 1,
'required' => 0,
'type' => 0,
'view' => 0
),
array(
'fieldName' => "leader",
'level' => 2,
'name' => "直属领导",
'number' => 2,
'open' => 1,
'required' => 0,
'type' => 0,
'view' => 0
),
)
)
)
);
return $result;
}
}