package com.bonus.system.mapper;

import com.bonus.system.domain.UserPasswordHistory;

import java.util.List;

/**
 * @author bonus
 */
public interface PasswordValidatorMapper {
    /**
     * 获取最近五次修改密码的时间
     *
     * @param userId 用户id
     * @return 时间
     */
    List<UserPasswordHistory> checkPasswordExpiry(Long userId);

    int addPasswordExpiry(UserPasswordHistory userPasswordHistory);
}
