|
|
|
@ -201,8 +201,16 @@ class GoodsController extends BaseController |
|
|
|
return $this->success($this->goodsService->bannerDelete($bannerId)); |
|
|
|
} |
|
|
|
|
|
|
|
public function getList(){ |
|
|
|
$goods = GoodsActivity::query()->limit(5)->orderByDesc('created_at')->get(); |
|
|
|
return $this->success(['goods' => $goods]); |
|
|
|
public function getList() |
|
|
|
{ |
|
|
|
$page = $this->request->input('page',0); |
|
|
|
$pagesize = $this->request->input('pagesize',10); |
|
|
|
$activity = $this->request->input('activity',''); |
|
|
|
$marketId = $this->request->input('market_id',-1); |
|
|
|
$res = ''; |
|
|
|
if($activity == 'bachelor'){ |
|
|
|
$res = $this->goodsActivityService->getList($marketId,$page,$pagesize); |
|
|
|
} |
|
|
|
return $this->success($res); |
|
|
|
} |
|
|
|
} |