feat: 新增属性特征列表接口
This commit is contained in:
@@ -31,11 +31,15 @@ class ProductAttr
|
||||
->language(request()->lang_id)
|
||||
->withSearch(['attr_name_nullable'], [
|
||||
'attr_name_nullable' => $params['keywords']??null,
|
||||
])
|
||||
->paginate([
|
||||
]);
|
||||
if (!request()->has('scene')) {
|
||||
$attrs = $attrs->paginate([
|
||||
'list_rows' => $params['size'],
|
||||
'page' => $params['page'],
|
||||
]);
|
||||
} else if ('list' == request()->param('scene')) {
|
||||
$attrs = $attrs->select();
|
||||
}
|
||||
|
||||
return success("获取成功", $attrs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user