package com.hs.admin.mapper;

import com.hs.admin.model.SysRoleMenuRs;
import com.hs.admin.model.respmodel.SysRoleMenuRsList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMenuRsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysRoleMenuRs record);

    SysRoleMenuRs selectByPrimaryKey(Integer id);

    List<SysRoleMenuRs> selectAll();

    int updateByPrimaryKey(SysRoleMenuRs record);

    List<SysRoleMenuRsList> selectByRole(@Param("roleId") Integer roleId);

    int deleteAllByRole(@Param("roleId") Long roleId);

    SysRoleMenuRs selectByUserWithRole(@Param("roleId") Long roleId,@Param("menuId") Long menuId);
}