package com.zsc.edu.gateway.modules.system.repo;

import com.zsc.edu.gateway.modules.system.entity.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author zhuang
 */
public interface UserRolesRepository extends BaseMapper<UserRole> {
    @Select("select role_id from sys_users_roles where user_id = #{userId}")
    List<Long> selectByUserId(@Param("userId") Long userId);
}