From c8896896ed702ff73d222852bf802728a598ce35 Mon Sep 17 00:00:00 2001 From: nsnail Date: Thu, 28 Aug 2025 12:12:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=99=BB=EF=B8=8F=20=E5=8E=BB?= =?UTF-8?q?=E9=99=A4CsvHelper=E7=BB=84=E4=BB=B6=20(#345)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [skip ci] Co-authored-by: tk --- .../Services/Sys/DevService.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DevService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DevService.cs index 581e7bef..d7d48ea0 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DevService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DevService.cs @@ -529,7 +529,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// true [Column] - [CsvIgnore] [JsonIgnore] public virtual bool Enabled { get; init; } """ @@ -545,7 +544,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// 2025-07-03 17:56:44 [Column(ServerTime = DateTimeKind.Local, CanUpdate = false, Position = -1)] - [CsvIgnore] [JsonIgnore] public virtual DateTime CreatedTime { get; init; } """ @@ -561,7 +559,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// 2025-07-03 17:56:44 [Column(ServerTime = DateTimeKind.Local, CanInsert = false, Position = -1)] - [CsvIgnore] [JsonIgnore] public virtual DateTime? ModifiedTime { get; init; } """ @@ -577,7 +574,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// 127.0.0.1 [Column] - [CsvIgnore] [JsonIgnore] public virtual int? CreatedClientIp { get; init; } """ @@ -593,7 +589,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// 127.0.0.1 [Column] - [CsvIgnore] [JsonIgnore] public virtual int? ModifiedClientIp { get; init; } """ @@ -609,7 +604,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// Mozilla/5.0 [Column(Position = -1, DbType = Chars.FLG_DB_FIELD_TYPE_VARCHAR_1022)] - [CsvIgnore] [JsonIgnore] public virtual string CreatedUserAgent { get; init; } """ @@ -625,7 +619,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// Mozilla/5.0 [Column(Position = -1, DbType = Chars.FLG_DB_FIELD_TYPE_VARCHAR_1022)] - [CsvIgnore] [JsonIgnore] public virtual string ModifiedUserAgent { get; init; } """ @@ -641,7 +634,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// 370942943322181 [Column(CanUpdate = false, Position = -1)] - [CsvIgnore] [JsonIgnore] public virtual long? CreatedUserId { get; init; } @@ -650,7 +642,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// root [Column(DbType = Chars.FLG_DB_FIELD_TYPE_VARCHAR_31, CanUpdate = false, Position = -1)] - [CsvIgnore] [JsonIgnore] public virtual string CreatedUserName { get; init; } """ @@ -666,7 +657,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// 370942943322181 [Column(CanUpdate = false, Position = -1)] - [CsvIgnore] [JsonIgnore] public virtual long? ModifiedUserId { get; init; } @@ -675,7 +665,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// root [Column(DbType = Chars.FLG_DB_FIELD_TYPE_VARCHAR_31, CanUpdate = false, Position = -1)] - [CsvIgnore] [JsonIgnore] public virtual string ModifiedUserName { get; init; } """ @@ -689,7 +678,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// 归属用户 /// - [CsvIgnore] [JsonIgnore] [Navigate(nameof(OwnerId))] public Sys_User Owner { get; init; } @@ -699,7 +687,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// 370942943322181 [Column] - [CsvIgnore] [JsonIgnore] public virtual long? OwnerDeptId { get; init; } @@ -708,7 +695,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// 370942943322181 [Column] - [CsvIgnore] [JsonIgnore] public virtual long? OwnerId { get; init; } """ @@ -724,7 +710,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// 100 [Column] - [CsvIgnore] [JsonIgnore] public virtual long Sort { get; init; } """ @@ -740,7 +725,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// 备注文字 [Column(DbType = Chars.FLG_DB_FIELD_TYPE_VARCHAR_255)] - [CsvIgnore] [JsonIgnore] public virtual string Summary { get; set; } """ @@ -756,7 +740,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// 100 [Column(IsVersion = true, Position = -1)] - [CsvIgnore] [JsonIgnore] public virtual long Version { get; init; } """ @@ -795,7 +778,6 @@ public sealed class DevService(IApiService apiService) : ServiceBase /// /// {{field.Example}} [Column{{column}}] - [CsvIgnore] [JsonIgnore]{{snowflake}} public {{decoration}} {{field.Type}}{{nul}} {{field.Name}} { get; init; } """