|
|
|
@ -85,6 +85,7 @@ class StoreBrand extends BaseController |
|
|
|
|
return app('json')->fail('数据不存在'); |
|
|
|
|
return app('json')->success($this->repository->get($id)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 验证 |
|
|
|
|
* @param validate $validate |
|
|
|
@ -137,4 +138,10 @@ class StoreBrand extends BaseController |
|
|
|
|
$this->repository->update($id, ['is_show' => $status]); |
|
|
|
|
return app('json')->success('修改成功'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function all() |
|
|
|
|
{ |
|
|
|
|
$data = $this->repository->getAll(); |
|
|
|
|
return app('json')->success($data); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|