|
|
|
@ -6,6 +6,7 @@ use App\Constants\v3\ErrorCode; |
|
|
|
use App\Controller\BaseController; |
|
|
|
use App\Exception\ErrorCodeException; |
|
|
|
use App\Model\v3\Category; |
|
|
|
use App\Model\v3\GoodsActivity; |
|
|
|
use App\Model\v3\GoodsCategory; |
|
|
|
use App\Request\v3\GoodsEditorRequest; |
|
|
|
use App\Service\v3\Interfaces\CategoryServiceInterface; |
|
|
|
@ -199,4 +200,9 @@ class GoodsController extends BaseController |
|
|
|
$bannerId = $this->request->input('banner_id',0); |
|
|
|
return $this->success($this->goodsService->bannerDelete($bannerId)); |
|
|
|
} |
|
|
|
|
|
|
|
public function getList(){ |
|
|
|
$goods = GoodsActivity::query()->limit(5)->orderByDesc('created_at')->get(); |
|
|
|
return $this->success(['goods' => $goods]); |
|
|
|
} |
|
|
|
} |