'require', 'goods_category_id' => 'require', 'spare_name' => 'require', 'spare_number' => 'require', 'company_price' => 'require', 'original_price' => 'require', 'offering_price' => 'require', 'spare_status' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'goods_category_id' => '服务类目id', 'spare_name' => '配件名称', 'spare_number' => '配件数量', 'company_price' => '公司价格', 'original_price' => '原价', 'offering_price' => '售价', 'spare_status' => '配件状态', ]; /** * @notes 添加场景 * @return SparePartValidate * @author likeadmin * @date 2024/09/14 15:08 */ public function sceneAdd() { return $this->only(['goods_category_id','spare_name','spare_number','company_price','original_price','offering_price','spare_status']); } /** * @notes 编辑场景 * @return SparePartValidate * @author likeadmin * @date 2024/09/14 15:08 */ public function sceneEdit() { return $this->only(['id','goods_category_id','spare_name','spare_number','company_price','original_price','offering_price','spare_status']); } /** * @notes 删除场景 * @return SparePartValidate * @author likeadmin * @date 2024/09/14 15:08 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return SparePartValidate * @author likeadmin * @date 2024/09/14 15:08 */ public function sceneDetail() { return $this->only(['id']); } }