|
|
@@ -34,6 +34,7 @@ class ViolationProduct extends BaseRequest
|
|
|
'product_specs' => 'required',
|
|
|
'suggested_price' => 'required',
|
|
|
'store_scope' => 'required',
|
|
|
+ 'platform' => 'required',
|
|
|
];
|
|
|
}
|
|
|
|
|
|
@@ -42,8 +43,8 @@ class ViolationProduct extends BaseRequest
|
|
|
protected $scenes = [
|
|
|
'detail' => ['id'],
|
|
|
'list' => ['page', 'limit'],
|
|
|
- 'add' => ['product_name', 'product_specs'],
|
|
|
- 'edit' => ['id', 'product_name', 'product_specs'],
|
|
|
+ 'add' => ['platform','product_name', 'product_specs'],
|
|
|
+ 'edit' => ['id','platform','product_name', 'product_specs'],
|
|
|
'set_status' => ['id', 'status'],
|
|
|
'delete' => ['id'],
|
|
|
];
|
|
|
@@ -76,6 +77,7 @@ class ViolationProduct extends BaseRequest
|
|
|
'product_specs.required' => '商品规格未知',
|
|
|
'suggested_price.required' => '建议价格未知',
|
|
|
'store_scope.required' => '适用门店未知',
|
|
|
+ 'platform.required' => '平台未知',
|
|
|
];
|
|
|
}
|
|
|
}
|