package com.fenzhitech.crrc.mapper; import com.fenzhitech.crrc.entity.SysRole; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 角色 Mapper 接口 */ @Mapper public interface SysRoleMapper { /** * 根据ID查询角色 */ SysRole selectById(@Param("id") Long id); /** * 根据角色编码查询角色 */ SysRole selectByCode(@Param("roleCode") String roleCode); /** * 查询角色列表 */ List selectList(); /** * 插入角色 */ int insert(SysRole role); /** * 更新角色 */ int update(SysRole role); }