'require', 'name' => 'require', 'pid' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'name' => '分类名称', 'pid' => '父级id', ]; /** * @notes 添加场景 * @return GoodsCategoryValidate * @author likeadmin * @date 2025/05/20 17:35 */ public function sceneAdd() { return $this->only(['name','pid']); } /** * @notes 编辑场景 * @return GoodsCategoryValidate * @author likeadmin * @date 2025/05/20 17:35 */ public function sceneEdit() { return $this->only(['id','name','pid']); } /** * @notes 删除场景 * @return GoodsCategoryValidate * @author likeadmin * @date 2025/05/20 17:35 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return GoodsCategoryValidate * @author likeadmin * @date 2025/05/20 17:35 */ public function sceneDetail() { return $this->only(['id']); } }