|
@@ -39,7 +39,7 @@ class GoodsValidate extends BaseValidate
|
|
|
'service_total' => 'require',
|
|
'service_total' => 'require',
|
|
|
'service_fee' => 'require',
|
|
'service_fee' => 'require',
|
|
|
'goods_status' => 'require',
|
|
'goods_status' => 'require',
|
|
|
-
|
|
|
|
|
|
|
+ 'ids' => 'require',
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
@@ -56,7 +56,7 @@ class GoodsValidate extends BaseValidate
|
|
|
'service_total' => '服务原价',
|
|
'service_total' => '服务原价',
|
|
|
'service_fee' => '服务价格',
|
|
'service_fee' => '服务价格',
|
|
|
'goods_status' => '商品状态',
|
|
'goods_status' => '商品状态',
|
|
|
-
|
|
|
|
|
|
|
+ 'ids' => '批量操作id',
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
@@ -106,5 +106,14 @@ class GoodsValidate extends BaseValidate
|
|
|
{
|
|
{
|
|
|
return $this->only(['id']);
|
|
return $this->only(['id']);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @notes 添加场景
|
|
|
|
|
+ * @return GoodsValidate
|
|
|
|
|
+ * @author likeadmin
|
|
|
|
|
+ * @date 2024/07/07 18:37
|
|
|
|
|
+ */
|
|
|
|
|
+ public function sceneRules()
|
|
|
|
|
+ {
|
|
|
|
|
+ return $this->only(['ids','rate','type']);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|