using System; using System.Collections.Generic; using Volo.Abp.Application.Dtos; namespace Sanhe.Abp.Auditing.AuditLogs { public class AuditLogDto : ExtensibleEntityDto { /// /// 应用名称 /// public string ApplicationName { get; set; } /// /// 用户Id /// public Guid? UserId { get; set; } /// /// 用户名称 /// public string UserName { get; set; } /// /// 租户Id /// public Guid? TenantId { get; set; } /// /// 租户名称 /// public string TenantName { get; set; } /// /// 模拟用户Id /// public Guid? ImpersonatorUserId { get; set; } /// /// 模拟租户Id /// public Guid? ImpersonatorTenantId { get; set; } /// /// 调用时间 /// public DateTime ExecutionTime { get; set; } /// /// 响应时间(ms) /// public int ExecutionDuration { get; set; } /// /// 客户端Ip地址 /// public string ClientIpAddress { get; set; } /// /// 客户端名称 /// public string ClientName { get; set; } /// /// 客户端Id /// public string ClientId { get; set; } /// /// 链路标识 /// public string CorrelationId { get; set; } /// /// 浏览器信息 /// public string BrowserInfo { get; set; } /// /// Http方法 /// public string HttpMethod { get; set; } /// /// Url /// public string Url { get; set; } /// /// 异常 /// public string Exceptions { get; set; } /// /// 评论 /// public string Comments { get; set; } /// /// Http状态码 /// public int? HttpStatusCode { get; set; } /// /// 实体变更 /// public List EntityChanges { get; set; } public List Actions { get; set; } public AuditLogDto() { EntityChanges = new List(); Actions = new List(); } } }