package com.tuoheng.mapper.op;

import com.tuoheng.model.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 小影
 * @description 针对表【op_menus(菜单表)】的数据库操作Mapper
 * @createDate 2023-03-20 14:50:28
 * @Entity com.tuoheng.model.entity.Menus
 */
@Mapper
public interface MenusMapper extends BaseMapper<Menu> {

    List<Menu> getOpMenusByRoleId(@Param("roleId") Integer roleId);

    List<Menu> getChildrenMenuByPid(@Param("parentId") Integer parentId);


}




