This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/store/controller/data/Shop.php
2020-04-25 22:20:29 +08:00

39 lines
905 B
PHP

<?php
namespace app\store\controller\data;
use app\store\controller\Controller;
use app\store\model\store\Shop as ShopModel;
class Shop extends Controller
{
/* @var ShopModel $model */
private $model;
/**
* 构造方法
* @throws \app\common\exception\BaseException
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function _initialize()
{
parent::_initialize();
$this->model = new ShopModel;
$this->view->engine->layout(false);
}
/**
* 门店列表
* @param null $status
* @return mixed
* @throws \think\exception\DbException
*/
public function lists($status = null)
{
$list = $this->model->getList($status);
return $this->fetch('list', compact('list'));
}
}