<?php
|
|
namespace app\api\controller\branch;
|
|
use app\api\controller\Controller;
|
use app\api\model\branch\Branch as BranchModel;
|
use xin\helper\Func;
|
|
/**
|
* 分会控制器
|
*/
|
class Branch extends Controller
|
{
|
/**
|
* 分会列表
|
*/
|
public function index()
|
{
|
$model = new BranchModel;
|
$list = $model->getList($this->postData());
|
return $this->renderSuccess('', compact('list'));
|
}
|
|
/**
|
*分会详情
|
*/
|
public function detail($branch_id)
|
{
|
$detail = Branch::detail($branch_id);
|
return $this->renderSuccess('', compact('detail'));
|
}
|
|
}
|