SysMenuMapper.java 876 B

123456789101112131415161718192021222324252627282930313233343536
  1. package com.diagbot.mapper;
  2. import com.diagbot.dto.SysUserPermissionDTO;
  3. import com.diagbot.entity.SysMenu;
  4. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  5. import com.diagbot.entity.wrapper.SysMenuWrapper;
  6. import java.util.List;
  7. import java.util.Set;
  8. /**
  9. * <p>
  10. * 系统菜单 Mapper 接口
  11. * </p>
  12. *
  13. * @author gaodm
  14. * @since 2020-04-12
  15. */
  16. public interface SysMenuMapper extends BaseMapper<SysMenu> {
  17. /**
  18. * @Description: 根据用户id获取菜单
  19. * @Author: ztg
  20. * @Date: 2018/9/14 13:57
  21. */
  22. public List<SysMenuWrapper> getByRole(Long userId, Set<String> roleSet);
  23. /**
  24. * @Description: 根据id获取子级菜单
  25. * @Author: ztg
  26. * @Date: 2018/9/14 13:59
  27. */
  28. public List<SysMenuWrapper> getSubMenuById(Long id);
  29. public List<SysUserPermissionDTO> getByRolePermission(Long userId,Set<String> roleSet);
  30. }