|
|
@ -25,9 +25,9 @@ class GoodsNew extends Controller |
|
|
|
} |
|
|
|
} |
|
|
|
$params = ['goods_name' => $keyword]; |
|
|
|
$params = ['goods_name' => $keyword]; |
|
|
|
$goodsService = new GoodsEs(); |
|
|
|
$goodsService = new GoodsEs(); |
|
|
|
$data = $goodsService->list($params, $page, $limit); |
|
|
|
$list = $goodsService->list($params, $page, $limit); |
|
|
|
|
|
|
|
$data['list'] = $list; |
|
|
|
$data['total'] = $goodsService->count(); |
|
|
|
$data['total'] = $goodsService->count(); |
|
|
|
$data['list'] = $data; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $this->renderSuccess($data); |
|
|
|
return $this->renderSuccess($data); |
|
|
|
} |
|
|
|
} |
|
|
|