using Dpz.Core.Infrastructure;
using Dpz.Core.Public.Entity;
using JetBrains.Annotations;
namespace Dpz.Core.Public.ViewModel;
[UsedImplicitly]
public class VmBlock : IMapFrom<Block>
{
public string Id { get; set; }
/// <summary>
/// 请求方法
/// </summary>
public string RequestMethod { get; set; }
/// <summary>
/// 请求地址
/// </summary>
public string RequestPath { get; set; }
/// <summary>
/// 请求IP
/// </summary>
public string[] IpAddresses { get; set; } = [];
/// <summary>
/// User-Agent
/// </summary>
public string[] UserAgents { get; set; } = [];
/// <summary>
/// 访问次数
/// </summary>
public int AccessCount { get; set; }
}