quanwei
2 days ago 73b874c72ad55eb9eef21c36160ac0de58f0189e
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
<?php
 
namespace app\api\controller\branch;
 
use app\api\controller\Controller;
use app\api\model\branch\Branch as BranchModel;
use app\common\model\branch\Setting as SettingModel;
use xin\helper\Func;
 
/**
 * 分会控制器
 */
class Branch extends Controller
{
    /**
     * 分会列表
     */
    public function index()
    {
        $model = new BranchModel;
        $list = $model->getList($this->postData());
        $words = SettingModel::getItem('words');
        return $this->renderSuccess('', compact('list', 'words'));
    }
 
    /**
     *分会详情
     */
    public function detail($branch_id)
    {
        $detail = Branch::detail($branch_id);
        return $this->renderSuccess('', compact('detail'));
    }
    
}