|
...
|
...
|
@@ -115,10 +115,12 @@ class ProductController extends BaseController |
|
|
|
public function batchSetCategory(ProductLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required',
|
|
|
|
'category_id'=>'required'
|
|
|
|
'category_id'=>'required',
|
|
|
|
'status'=>'required'
|
|
|
|
],[
|
|
|
|
'id.required' => '产品ID不能为空',
|
|
|
|
'category_id' => '分类ID不能为空'
|
|
|
|
'category_id' => '分类ID不能为空',
|
|
|
|
'status'=>'状态不能为空'
|
|
|
|
]);
|
|
|
|
$logic->batchSetCategory();
|
|
|
|
$this->response('success');
|
...
|
...
|
|