You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
676 B
22 lines
676 B
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using CellularManagement.Domain.Entities.Logging;
|
|
using CellularManagement.Domain.Repositories.Base;
|
|
|
|
namespace CellularManagement.Domain.Repositories.Identity;
|
|
|
|
/// <summary>
|
|
/// 登录日志仓储接口
|
|
/// </summary>
|
|
public interface ILoginLogRepository : IBaseRepository<LoginLog>
|
|
{
|
|
/// <summary>
|
|
/// 记录登录日志
|
|
/// </summary>
|
|
Task<LoginLog> RecordLoginAsync(LoginLog log, CancellationToken cancellationToken = default);
|
|
|
|
/// <summary>
|
|
/// 检查IP是否被限制
|
|
/// </summary>
|
|
Task<bool> IsIpRestrictedAsync(string ipAddress, CancellationToken cancellationToken = default);
|
|
}
|