package com.lantone.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lantone.security.dto.UserRoleDTO;
import com.lantone.security.entity.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 表名：sys_user_role Mapper接口
 * </p>
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

    List<UserRoleDTO> getUserRoles(@Param("userId") Long userId);

    List<Long> getUserRoleById(@Param("userId") Long userId);
}