|
...
|
...
|
@@ -625,4 +625,21 @@ class ProductController extends BaseController |
|
|
|
$data = $logic->getSearchCategoryList();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :清空所有的产品+关键词关联
|
|
|
|
* @name :delProductKeyword
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/8/5 15:47
|
|
|
|
*/
|
|
|
|
public function delProductKeyword(ProductLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required',
|
|
|
|
],[
|
|
|
|
'id.required' => 'id不为空',
|
|
|
|
]);
|
|
|
|
$logic->delProductKeyword();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|