mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-04-19 21:02:49 +08:00
style: 💄 code format
[skip ci]
This commit is contained in:
parent
d1e4704adc
commit
9504c96f40
@ -39,7 +39,7 @@ public record Sys_LoginLog : SimpleEntity, IFieldCreatedTime, IFieldOwner, IFiel
|
|||||||
[Column]
|
[Column]
|
||||||
[CsvIgnore]
|
[CsvIgnore]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public virtual int Duration { get; init; }
|
public virtual int Duration { get; protected init; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 程序响应码
|
/// 程序响应码
|
||||||
@ -47,7 +47,7 @@ public record Sys_LoginLog : SimpleEntity, IFieldCreatedTime, IFieldOwner, IFiel
|
|||||||
[Column]
|
[Column]
|
||||||
[CsvIgnore]
|
[CsvIgnore]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public virtual ErrorCodes ErrorCode { get; init; }
|
public virtual ErrorCodes ErrorCode { get; protected init; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// HTTP状态码
|
/// HTTP状态码
|
||||||
@ -63,7 +63,7 @@ public record Sys_LoginLog : SimpleEntity, IFieldCreatedTime, IFieldOwner, IFiel
|
|||||||
[Column(Position = -1, DbType = Chars.FLG_DB_FIELD_TYPE_VARCHAR_63)]
|
[Column(Position = -1, DbType = Chars.FLG_DB_FIELD_TYPE_VARCHAR_63)]
|
||||||
[CsvIgnore]
|
[CsvIgnore]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public virtual string LoginUserName { get; init; }
|
public virtual string LoginUserName { get; protected init; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 拥有者
|
/// 拥有者
|
||||||
@ -95,7 +95,7 @@ public record Sys_LoginLog : SimpleEntity, IFieldCreatedTime, IFieldOwner, IFiel
|
|||||||
[Column(DbType = Chars.FLGL_DB_FIELD_TYPE_VARCHAR_MAX)]
|
[Column(DbType = Chars.FLGL_DB_FIELD_TYPE_VARCHAR_MAX)]
|
||||||
[CsvIgnore]
|
[CsvIgnore]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public virtual string RequestBody { get; init; }
|
public virtual string RequestBody { get; protected init; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 请求头信息
|
/// 请求头信息
|
||||||
@ -103,7 +103,7 @@ public record Sys_LoginLog : SimpleEntity, IFieldCreatedTime, IFieldOwner, IFiel
|
|||||||
[Column(DbType = Chars.FLGL_DB_FIELD_TYPE_VARCHAR_MAX)]
|
[Column(DbType = Chars.FLGL_DB_FIELD_TYPE_VARCHAR_MAX)]
|
||||||
[CsvIgnore]
|
[CsvIgnore]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public virtual string RequestHeaders { get; init; }
|
public virtual string RequestHeaders { get; protected init; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 请求地址
|
/// 请求地址
|
||||||
@ -111,7 +111,7 @@ public record Sys_LoginLog : SimpleEntity, IFieldCreatedTime, IFieldOwner, IFiel
|
|||||||
[Column(DbType = Chars.FLG_DB_FIELD_TYPE_VARCHAR_127)]
|
[Column(DbType = Chars.FLG_DB_FIELD_TYPE_VARCHAR_127)]
|
||||||
[CsvIgnore]
|
[CsvIgnore]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public virtual string RequestUrl { get; init; }
|
public virtual string RequestUrl { get; protected init; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 响应内容
|
/// 响应内容
|
||||||
@ -119,7 +119,7 @@ public record Sys_LoginLog : SimpleEntity, IFieldCreatedTime, IFieldOwner, IFiel
|
|||||||
[Column(DbType = Chars.FLGL_DB_FIELD_TYPE_VARCHAR_MAX)]
|
[Column(DbType = Chars.FLGL_DB_FIELD_TYPE_VARCHAR_MAX)]
|
||||||
[CsvIgnore]
|
[CsvIgnore]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public virtual string ResponseBody { get; init; }
|
public virtual string ResponseBody { get; protected init; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 响应头
|
/// 响应头
|
||||||
@ -127,7 +127,7 @@ public record Sys_LoginLog : SimpleEntity, IFieldCreatedTime, IFieldOwner, IFiel
|
|||||||
[Column(DbType = Chars.FLGL_DB_FIELD_TYPE_VARCHAR_MAX)]
|
[Column(DbType = Chars.FLGL_DB_FIELD_TYPE_VARCHAR_MAX)]
|
||||||
[CsvIgnore]
|
[CsvIgnore]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public virtual string ResponseHeaders { get; init; }
|
public virtual string ResponseHeaders { get; protected init; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 服务器IP
|
/// 服务器IP
|
||||||
@ -135,5 +135,5 @@ public record Sys_LoginLog : SimpleEntity, IFieldCreatedTime, IFieldOwner, IFiel
|
|||||||
[Column]
|
[Column]
|
||||||
[CsvIgnore]
|
[CsvIgnore]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public virtual int? ServerIp { get; init; }
|
public virtual int? ServerIp { get; protected init; }
|
||||||
}
|
}
|
@ -47,7 +47,7 @@ public sealed record ExportLoginLogRsp : QueryLoginLogRsp
|
|||||||
[CsvIgnore(false)]
|
[CsvIgnore(false)]
|
||||||
[CsvIndex(2)]
|
[CsvIndex(2)]
|
||||||
[CsvName(nameof(Ln.登录名))]
|
[CsvName(nameof(Ln.登录名))]
|
||||||
public override string LoginUserName { get; init; }
|
public override string LoginUserName { get; protected init; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
[CsvIgnore]
|
[CsvIgnore]
|
||||||
|
@ -30,11 +30,11 @@ public record QueryLoginLogRsp : Sys_LoginLog
|
|||||||
|
|
||||||
/// <inheritdoc cref="Sys_LoginLog.Duration" />
|
/// <inheritdoc cref="Sys_LoginLog.Duration" />
|
||||||
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
|
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
|
||||||
public override int Duration { get; init; }
|
public override int Duration { get; protected init; }
|
||||||
|
|
||||||
/// <inheritdoc cref="Sys_LoginLog.ErrorCode" />
|
/// <inheritdoc cref="Sys_LoginLog.ErrorCode" />
|
||||||
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
|
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
|
||||||
public override ErrorCodes ErrorCode { get; init; }
|
public override ErrorCodes ErrorCode { get; protected init; }
|
||||||
|
|
||||||
/// <inheritdoc cref="Sys_LoginLog.HttpStatusCode" />
|
/// <inheritdoc cref="Sys_LoginLog.HttpStatusCode" />
|
||||||
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
|
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
|
||||||
@ -46,32 +46,32 @@ public record QueryLoginLogRsp : Sys_LoginLog
|
|||||||
|
|
||||||
/// <inheritdoc cref="Sys_LoginLog.LoginUserName" />
|
/// <inheritdoc cref="Sys_LoginLog.LoginUserName" />
|
||||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||||
public override string LoginUserName { get; init; }
|
public override string LoginUserName { get; protected init; }
|
||||||
|
|
||||||
/// <inheritdoc cref="Sys_LoginLog.Owner" />
|
/// <inheritdoc cref="Sys_LoginLog.Owner" />
|
||||||
public new virtual QueryUserRsp Owner { get; init; }
|
public new virtual QueryUserRsp Owner { get; init; }
|
||||||
|
|
||||||
/// <inheritdoc cref="Sys_LoginLog.RequestBody" />
|
/// <inheritdoc cref="Sys_LoginLog.RequestBody" />
|
||||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||||
public override string RequestBody { get; init; }
|
public override string RequestBody { get; protected init; }
|
||||||
|
|
||||||
/// <inheritdoc cref="Sys_LoginLog.RequestHeaders" />
|
/// <inheritdoc cref="Sys_LoginLog.RequestHeaders" />
|
||||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||||
public override string RequestHeaders { get; init; }
|
public override string RequestHeaders { get; protected init; }
|
||||||
|
|
||||||
/// <inheritdoc cref="Sys_LoginLog.RequestUrl" />
|
/// <inheritdoc cref="Sys_LoginLog.RequestUrl" />
|
||||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||||
public override string RequestUrl { get; init; }
|
public override string RequestUrl { get; protected init; }
|
||||||
|
|
||||||
/// <inheritdoc cref="Sys_LoginLog.ResponseBody" />
|
/// <inheritdoc cref="Sys_LoginLog.ResponseBody" />
|
||||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||||
public override string ResponseBody { get; init; }
|
public override string ResponseBody { get; protected init; }
|
||||||
|
|
||||||
/// <inheritdoc cref="Sys_LoginLog.ResponseHeaders" />
|
/// <inheritdoc cref="Sys_LoginLog.ResponseHeaders" />
|
||||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||||
public override string ResponseHeaders { get; init; }
|
public override string ResponseHeaders { get; protected init; }
|
||||||
|
|
||||||
/// <inheritdoc cref="Sys_LoginLog.ServerIp" />
|
/// <inheritdoc cref="Sys_LoginLog.ServerIp" />
|
||||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||||
public override int? ServerIp { get; init; }
|
public override int? ServerIp { get; protected init; }
|
||||||
}
|
}
|
@ -20,10 +20,10 @@ public abstract record SqlCommandEvent : DataAbstraction, IEventSource
|
|||||||
public CancellationToken CancellationToken { get; init; }
|
public CancellationToken CancellationToken { get; init; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public DateTime CreatedTime { get; init; }
|
public DateTime CreatedTime { get; protected init; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string EventId { get; init; }
|
public string EventId { get; protected init; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public object Payload { get; init; }
|
public object Payload { get; init; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user