1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <?php
|
| namespace app\api\controller\branch;
|
| use app\api\controller\Controller;
|
| /**
| * 分会控制器
| */
| class Admin extends Controller
| {
|
| protected $user;
| protected $branch;
| /**
| * 构造方法
| */
| public function initialize()
| {
| $this->user = $this->getUser();
| $this->branch = $this->getBranch($this->user);
| }
| }
|
|