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