package cn.reghao.tnb.auth.app.db.mapper;

import cn.reghao.jutil.jdk.web.db.BaseMapper;
import cn.reghao.tnb.auth.app.model.po.UserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author reghao
 * @date 2025-08-13 16:32:45
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {
    List<UserRole> findRolesByUserId(long userId);
    List<Long> findUserIdsByRole(String role);
}
