'require', 'name' => 'require', 'desc' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'name' => '名称', 'desc' => '描述', ]; /** * @notes 添加场景 * @return UserRoleValidate * @author likeadmin * @date 2023/08/23 09:38 */ public function sceneAdd() { return $this->only(['name','desc']); } /** * @notes 编辑场景 * @return UserRoleValidate * @author likeadmin * @date 2023/08/23 09:38 */ public function sceneEdit() { return $this->only(['id','name','desc']); } /** * @notes 删除场景 * @return UserRoleValidate * @author likeadmin * @date 2023/08/23 09:38 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return UserRoleValidate * @author likeadmin * @date 2023/08/23 09:38 */ public function sceneDetail() { return $this->only(['id']); } }