|
...
|
...
|
@@ -171,18 +171,6 @@ class ProductController extends BaseController |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :搜索分类参数
|
|
|
|
* @name :searchCategory
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/7/9 14:48
|
|
|
|
*/
|
|
|
|
public function getSearchCategoryList(ProductLogic $logic){
|
|
|
|
$data = $logic->getSearchCategoryList();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取当前id下所有子集
|
|
|
|
* @name :getAllSub
|
|
|
|
* @author :lyh
|
|
...
|
...
|
@@ -592,4 +580,21 @@ class ProductController extends BaseController |
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$productInfo);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :搜索分类参数
|
|
|
|
* @name :searchCategory
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/7/9 14:48
|
|
|
|
*/
|
|
|
|
public function getSearchCategoryList(ProductLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'featured_status'=>'numeric',
|
|
|
|
],[
|
|
|
|
'featured_status.numeric' => 'numeric为数字',
|
|
|
|
]);
|
|
|
|
$data = $logic->getSearchCategoryList();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|