You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package com.aurora.service ;
import com.aurora.model.dto.RoleDTO ; // 导入角色数据传输对象( RoleDTO) , 用于前台或管理界面展示角色信息, 通常包含角色基本属性及扩展字段( 如用户数量、权限列表等)
import com.aurora.model.dto.UserRoleDTO ; // 导入用户角色数据传输对象( UserRoleDTO) , 用于关联用户和角色信息, 通常在用户管理或权限分配场景中使用
import com.aurora.entity.Role ;
import com.aurora.model.vo.ConditionVO ;
import com.aurora.model.dto.PageResultDTO ;
import com.aurora.model.vo.RoleVO ;
import com.baomidou.mybatisplus.extension.service.IService ;
import java.util.List ;
public interface RoleService extends IService < Role > {
List < UserRoleDTO > listUserRoles ( ) ; //获取用户角色关联列表,返回结果包含用户与角色的关联信息,适用于前端下拉选择或权限分配界面
PageResultDTO < RoleDTO > listRoles ( ConditionVO conditionVO ) ;
void saveOrUpdateRole ( RoleVO roleVO ) ;
void deleteRoles ( List < Integer > ids ) ; //一次性删除多个角色记录,通常需要检查角色是否被用户关联,避免误删正在使用的角色
}