package cn.reghao.tnb.auth.app.service;

import cn.reghao.jutil.jdk.web.result.Result;
import cn.reghao.tnb.auth.app.model.vo.LoginRecordVo;
import cn.reghao.tnb.auth.app.security.form.AccountAuthToken;

import java.util.List;

/**
 * @author reghao
 * @date 2022-07-08 10:37:49
 */
public interface LoginAttemptService {
    void loginCheck(long userId);
    Result loginFailedCount(long userId, String loginId);
    void saveLoginAttempts(AccountAuthToken authToken);
    List<LoginRecordVo> getActiveLogin();
}
