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.mapper ;
import com.aurora.entity.Menu ; // 导入菜单实体类Menu, 该实体类与数据库中的菜单表相对应
import com.baomidou.mybatisplus.core.mapper.BaseMapper ;
import org.springframework.stereotype.Repository ;
import java.util.List ; // 导入Java集合框架中的List接口, 用于返回多个菜单的集合
@Repository
//定义MenuMapper接口, 继承自MyBatis-Plus的BaseMapper接口
// 泛型参数Menu指定了该Mapper操作的实体类型
// 继承BaseMapper后, 自动获得了基本的CRUD方法, 如insert、deleteById、updateById、selectById等
public interface MenuMapper extends BaseMapper < Menu > {
// 自定义查询方法: 根据用户信息ID查询该用户有权访问的菜单列表
// 用户信息ID通常对应系统用户的主键ID
// 返回菜单实体列表,包含菜单的基本信息(如菜单名称、路径、图标等)
// 此方法通常用于实现基于角色的权限控制( RBAC) , 不同用户角色看到不同的菜单
List < Menu > listMenusByUserInfoId ( Integer userInfoId ) ;
}