'require', 'name' => 'require', 'sort' => 'require', 'is_show' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'name' => '分类名称', 'sort' => '排序', 'is_show' => '是否显示', ]; /** * @notes 添加场景 * @return ItemCateValidate * @author likeadmin * @date 2024/01/16 13:23 */ public function sceneAdd() { return $this->only(['name','sort','is_show']); } /** * @notes 编辑场景 * @return ItemCateValidate * @author likeadmin * @date 2024/01/16 13:23 */ public function sceneEdit() { return $this->only(['id','name','sort','is_show']); } /** * @notes 删除场景 * @return ItemCateValidate * @author likeadmin * @date 2024/01/16 13:23 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return ItemCateValidate * @author likeadmin * @date 2024/01/16 13:23 */ public function sceneDetail() { return $this->only(['id']); } /** * @notes 更改状态场景 * @return ArticleCateValidate * @author heshihu * @date 2022/2/21 18:02 */ public function sceneStatus() { return $this->only(['id', 'is_show']); } }