|
|
|
@ -16,6 +16,7 @@ use think\App; |
|
|
|
|
use crmeb\basic\BaseController; |
|
|
|
|
use app\validate\admin\StoreBrandValidate as validate; |
|
|
|
|
use app\common\repositories\store\StoreBrandRepository; |
|
|
|
|
use app\common\repositories\store\CityAreaRepository; |
|
|
|
|
|
|
|
|
|
class StoreBrand extends BaseController |
|
|
|
|
{ |
|
|
|
@ -141,7 +142,13 @@ class StoreBrand extends BaseController |
|
|
|
|
|
|
|
|
|
public function all() |
|
|
|
|
{ |
|
|
|
|
$data = $this->repository->getAll(); |
|
|
|
|
$data = $this->repository->getAll(); |
|
|
|
|
return app('json')->success($data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function getCitylist($id,CityAreaRepository $repository) |
|
|
|
|
{ |
|
|
|
|
$where['parent_id'] = $id; |
|
|
|
|
return app('json')->success($repository->getList($where)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|