package com.hs.admin.mapper;

import com.hs.admin.model.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysRole record);

    SysRole selectByPrimaryKey(Integer id);

    List<SysRole> selectAll();

    int updateByPrimaryKey(SysRole record);

    List<SysRole> selectRoleByUser(Integer userId);

    SysRole selectByCode(@Param("roleCode") Long roleCode);
}