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

import cn.reghao.jutil.jdk.db.BaseMapper;
import cn.reghao.tnb.account.app.model.po.LoginAttempts;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author reghao
 * @date 2020-04-27 09:35:39
 */
@Mapper
public interface LoginAttemptsMapper extends BaseMapper<LoginAttempts> {
    void updateSetFailed(String loginId);

    List<LoginAttempts> findByLoginIds(List<String> loginIds);
    List<LoginAttempts> findByUserId(@Param("userId") long userId, @Param("pageSize") int pageSize);
}
