'require', 'title' => 'require', 'service_time' => 'require', 'goods_category_ids' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'title' => '标题', 'service_time' => '服务时长', 'goods_category_ids' => '商品分类' ]; /** * @notes 添加场景 * @return GoodsTimeValidate * @author likeadmin * @date 2025/02/23 11:02 */ public function sceneAdd() { return $this->only(['title','service_time','goods_category_ids']); } /** * @notes 编辑场景 * @return GoodsTimeValidate * @author likeadmin * @date 2025/02/23 11:02 */ public function sceneEdit() { return $this->only(['id','title','service_time','goods_category_ids']); } /** * @notes 删除场景 * @return GoodsTimeValidate * @author likeadmin * @date 2025/02/23 11:02 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return GoodsTimeValidate * @author likeadmin * @date 2025/02/23 11:02 */ public function sceneDetail() { return $this->only(['id']); } }