package com.ycwl.basic.mapper;

import com.ycwl.basic.model.pc.menu.MenuNode;
import com.ycwl.basic.model.pc.menu.entity.MenuEntity;
import com.ycwl.basic.model.pc.role.resp.RolePermissionResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuMapper {
    /**
     * 根据角色id删除角色菜单
     * @param roleId 角色id
     * @return
     */
    int deleteRoleMenuByRoleId(@Param("id")String roleId);
    int addRoleMenu(@Param("id")String roleId,@Param("menuStr") String menuStr, @Param("permStr") String permStr);
    RolePermissionResp getPermissionByRoleId(Long roleId);
}
