package cn.reghao.bnt.web.admin.db.repository;

import cn.reghao.bnt.web.admin.model.po.LoginAttempt;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author reghao
 * @date 2024-10-12 11:33:40
 */
public interface LoginAttemptsRepository extends JpaRepository<LoginAttempt, Integer> {
    LoginAttempt findByLoginId(String loginId);
    Page<LoginAttempt> findByUserId(int userId, Pageable pageable);
    List<LoginAttempt> findByLoginIdIn(List<String> loginIds);
}
