32 lines
636 B
PHP
32 lines
636 B
PHP
![]() |
<?php
|
||
|
namespace app\controller\middle;
|
||
|
|
||
|
use crmeb\basic\BaseController;
|
||
|
use think\App;
|
||
|
use think\facade\Db;
|
||
|
use app\common\repositories\system\merchant\MerchantCategoryRepository;
|
||
|
|
||
|
/**
|
||
|
* Class Auth
|
||
|
* @package app\controller\api
|
||
|
* @author xaboy
|
||
|
* @day 2020-05-06
|
||
|
*/
|
||
|
class MerchantCategory extends BaseController
|
||
|
{
|
||
|
|
||
|
protected $repository;
|
||
|
|
||
|
public function __construct(App $app, MerchantCategoryRepository $repository)
|
||
|
{
|
||
|
parent::__construct($app);
|
||
|
$this->repository = $repository;
|
||
|
}
|
||
|
|
||
|
public function getOptions()
|
||
|
{
|
||
|
return app('json')->success($this->repository->allOptions());
|
||
|
}
|
||
|
|
||
|
}
|