All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.javaclub.base.mapper.SysMenuMapper Maven / Gradle / Ivy

/* Automatic generated by CrudCodeGenerator wirtten by Gerald Chen
 *
 * @(#)SysMenuMapper.java  2023-09-06
 *
 * Copyright (c) 2023 - 2099. All Rights Reserved.
 *
 */

package com.github.javaclub.base.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.javaclub.base.domain.SysMenu;

/**
 * SysMenuMapper 数据库持久层
 *
 * @version $Id: SysMenuMapper.java 2023-09-06 19:11:11 Exp $
 */
public interface SysMenuMapper extends BaseMapper {
	
	/**
	 * 根据角色id获取菜单列表
	 * @param roleId 角色id
	 * @return 菜单id列表
	 */
	List listMenuIdByRoleId(Long roleId);

	/**
	 * 查询用户的所有菜单ID
	 * @param userId 用户id
	 * @return 该用户所有可用的菜单
	 */
	List listMenuByUserId(Long userId);
	
	/**
	 * 获取系统的所有菜单
	 * @return 系统的所有菜单
	 */
	List listMenu();

	/**
	 * 获取简单的menu tree 用于在 ele-ui tree中显示,根据orderNum排序
	 * @return ztreeDto列表
	 */
	List listSimpleMenuNoButton();

	/**
	 * 获取一级菜单
	 * @return 一级菜单列表
	 */
	List listRootMenu();
	
	/**
	 * 根据一级菜单id 获取二级菜单
	 * @param parentId 一级菜单id
	 * @return 二级菜单列表
	 */
	List listChildrenMenuByParentId(Long parentId);

	/**
	 * 获取菜单和按钮列表
	 * @return
	 */
	List listMenuAndBtn();
	
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy