Browse Source

清理代码

懒得勤快 1 year ago
parent
commit
22ad282e31
100 changed files with 34 additions and 232 deletions
  1. 0 1
      src/Masuit.MyBlogs.Core/Common/CommonHelper.cs
  2. 0 1
      src/Masuit.MyBlogs.Core/Common/Mails/MailgunSender.cs
  3. 0 1
      src/Masuit.MyBlogs.Core/Common/Mails/SmtpSender.cs
  4. 0 3
      src/Masuit.MyBlogs.Core/Common/PerfCounter.cs
  5. 0 1
      src/Masuit.MyBlogs.Core/Controllers/AdminController.cs
  6. 0 5
      src/Masuit.MyBlogs.Core/Controllers/AdvertisementController.cs
  7. 0 2
      src/Masuit.MyBlogs.Core/Controllers/BaseController.cs
  8. 0 2
      src/Masuit.MyBlogs.Core/Controllers/CategoryController.cs
  9. 0 5
      src/Masuit.MyBlogs.Core/Controllers/CommentController.cs
  10. 0 1
      src/Masuit.MyBlogs.Core/Controllers/DashboardController.cs
  11. 0 1
      src/Masuit.MyBlogs.Core/Controllers/DefaultController.cs
  12. 0 2
      src/Masuit.MyBlogs.Core/Controllers/DonateController.cs
  13. 0 1
      src/Masuit.MyBlogs.Core/Controllers/Drive/AdminController.cs
  14. 1 3
      src/Masuit.MyBlogs.Core/Controllers/Drive/DriveController.cs
  15. 0 2
      src/Masuit.MyBlogs.Core/Controllers/Drive/SitesController.cs
  16. 0 1
      src/Masuit.MyBlogs.Core/Controllers/Drive/UserController.cs
  17. 0 3
      src/Masuit.MyBlogs.Core/Controllers/ErrorController.cs
  18. 0 2
      src/Masuit.MyBlogs.Core/Controllers/FileController.cs
  19. 0 2
      src/Masuit.MyBlogs.Core/Controllers/FirewallController.cs
  20. 0 5
      src/Masuit.MyBlogs.Core/Controllers/HomeController.cs
  21. 1 4
      src/Masuit.MyBlogs.Core/Controllers/LinksController.cs
  22. 1 3
      src/Masuit.MyBlogs.Core/Controllers/LoginController.cs
  23. 0 2
      src/Masuit.MyBlogs.Core/Controllers/MenuController.cs
  24. 0 3
      src/Masuit.MyBlogs.Core/Controllers/MergeController.cs
  25. 1 3
      src/Masuit.MyBlogs.Core/Controllers/MiscController.cs
  26. 0 5
      src/Masuit.MyBlogs.Core/Controllers/MsgController.cs
  27. 1 5
      src/Masuit.MyBlogs.Core/Controllers/NoticeController.cs
  28. 0 1
      src/Masuit.MyBlogs.Core/Controllers/PassportController.cs
  29. 0 5
      src/Masuit.MyBlogs.Core/Controllers/PostController.cs
  30. 1 4
      src/Masuit.MyBlogs.Core/Controllers/SearchController.cs
  31. 0 3
      src/Masuit.MyBlogs.Core/Controllers/SeminarController.cs
  32. 0 2
      src/Masuit.MyBlogs.Core/Controllers/ShareController.cs
  33. 0 1
      src/Masuit.MyBlogs.Core/Controllers/ShortController.cs
  34. 0 4
      src/Masuit.MyBlogs.Core/Controllers/SubscribeController.cs
  35. 0 4
      src/Masuit.MyBlogs.Core/Controllers/SystemController.cs
  36. 0 3
      src/Masuit.MyBlogs.Core/Controllers/ToolsController.cs
  37. 0 3
      src/Masuit.MyBlogs.Core/Controllers/UploadController.cs
  38. 0 1
      src/Masuit.MyBlogs.Core/Controllers/UserController.cs
  39. 0 1
      src/Masuit.MyBlogs.Core/Controllers/ValidateController.cs
  40. 0 2
      src/Masuit.MyBlogs.Core/Controllers/ValuesController.cs
  41. 0 1
      src/Masuit.MyBlogs.Core/EFCoreCacheProvider.cs
  42. 1 2
      src/Masuit.MyBlogs.Core/Extensions/Firewall/CloudflareRepoter.cs
  43. 0 2
      src/Masuit.MyBlogs.Core/Extensions/Firewall/FirewallAttribute.cs
  44. 1 3
      src/Masuit.MyBlogs.Core/Extensions/Firewall/IRequestLogger.cs
  45. 0 1
      src/Masuit.MyBlogs.Core/Extensions/Firewall/RequestInterceptMiddleware.cs
  46. 0 2
      src/Masuit.MyBlogs.Core/Extensions/Hangfire/HangfireBackJob.cs
  47. 0 1
      src/Masuit.MyBlogs.Core/Extensions/MiddlewareExtension.cs
  48. 0 1
      src/Masuit.MyBlogs.Core/Extensions/MyAuthorizeAttribute.cs
  49. 1 2
      src/Masuit.MyBlogs.Core/Extensions/TranslateMiddleware.cs
  50. 1 2
      src/Masuit.MyBlogs.Core/Extensions/UEditor/CrawlerHandler.cs
  51. 1 2
      src/Masuit.MyBlogs.Core/Extensions/UEditor/UploadHandler.cs
  52. 7 1
      src/Masuit.MyBlogs.Core/GlobalUsings.cs
  53. 0 1
      src/Masuit.MyBlogs.Core/Infrastructure/DataContext.cs
  54. 0 1
      src/Masuit.MyBlogs.Core/Infrastructure/DriveContext.cs
  55. 1 4
      src/Masuit.MyBlogs.Core/Infrastructure/LoggerDbContext.cs
  56. 0 2
      src/Masuit.MyBlogs.Core/Infrastructure/Repository/BaseRepository.cs
  57. 0 1
      src/Masuit.MyBlogs.Core/Infrastructure/Repository/Interface/IBaseRepository.cs
  58. 0 1
      src/Masuit.MyBlogs.Core/Infrastructure/Repository/PostRepository.cs
  59. 0 2
      src/Masuit.MyBlogs.Core/Infrastructure/Repository/QueryableExt.cs
  60. 0 2
      src/Masuit.MyBlogs.Core/Infrastructure/Services/AdvertisementService.cs
  61. 0 1
      src/Masuit.MyBlogs.Core/Infrastructure/Services/BaseService.cs
  62. 1 3
      src/Masuit.MyBlogs.Core/Infrastructure/Services/Interface/IAdvertisementService.cs
  63. 0 1
      src/Masuit.MyBlogs.Core/Infrastructure/Services/Interface/IBaseService.cs
  64. 0 2
      src/Masuit.MyBlogs.Core/Infrastructure/Services/PostService.cs
  65. 0 2
      src/Masuit.MyBlogs.Core/Models/Command/CategoryCommand.cs
  66. 0 1
      src/Masuit.MyBlogs.Core/Models/Command/CommentCommand.cs
  67. 0 1
      src/Masuit.MyBlogs.Core/Models/Command/LeaveMessageCommand.cs
  68. 0 2
      src/Masuit.MyBlogs.Core/Models/Command/MenuCommand.cs
  69. 0 1
      src/Masuit.MyBlogs.Core/Models/Command/PostMergeRequestCommand.cs
  70. 0 1
      src/Masuit.MyBlogs.Core/Models/Command/PostMergeRequestCommandBase.cs
  71. 1 3
      src/Masuit.MyBlogs.Core/Models/DTO/AdvertisementDto.cs
  72. 1 3
      src/Masuit.MyBlogs.Core/Models/DTO/CategoryDto.cs
  73. 1 3
      src/Masuit.MyBlogs.Core/Models/DTO/CategoryDto_P.cs
  74. 1 3
      src/Masuit.MyBlogs.Core/Models/DTO/MenuDto.cs
  75. 0 1
      src/Masuit.MyBlogs.Core/Models/DTO/PostCommand.cs
  76. 1 3
      src/Masuit.MyBlogs.Core/Models/DTO/SearchDetailsDto.cs
  77. 0 1
      src/Masuit.MyBlogs.Core/Models/DTO/UserInfoDto.cs
  78. 0 2
      src/Masuit.MyBlogs.Core/Models/Drive/Setting.cs
  79. 0 1
      src/Masuit.MyBlogs.Core/Models/Drive/Site.cs
  80. 0 2
      src/Masuit.MyBlogs.Core/Models/Entity/Advertisement.cs
  81. 1 3
      src/Masuit.MyBlogs.Core/Models/Entity/AdvertisementClickRecord.cs
  82. 0 4
      src/Masuit.MyBlogs.Core/Models/Entity/Category.cs
  83. 0 4
      src/Masuit.MyBlogs.Core/Models/Entity/Comment.cs
  84. 1 3
      src/Masuit.MyBlogs.Core/Models/Entity/Donate.cs
  85. 1 2
      src/Masuit.MyBlogs.Core/Models/Entity/EmailBlocklist.cs
  86. 1 3
      src/Masuit.MyBlogs.Core/Models/Entity/FastShare.cs
  87. 1 3
      src/Masuit.MyBlogs.Core/Models/Entity/InternalMessage.cs
  88. 0 4
      src/Masuit.MyBlogs.Core/Models/Entity/LeaveMessage.cs
  89. 0 2
      src/Masuit.MyBlogs.Core/Models/Entity/LinkLoopback.cs
  90. 0 2
      src/Masuit.MyBlogs.Core/Models/Entity/Links.cs
  91. 1 3
      src/Masuit.MyBlogs.Core/Models/Entity/LoginRecord.cs
  92. 0 4
      src/Masuit.MyBlogs.Core/Models/Entity/Menu.cs
  93. 0 2
      src/Masuit.MyBlogs.Core/Models/Entity/Misc.cs
  94. 0 2
      src/Masuit.MyBlogs.Core/Models/Entity/Notice.cs
  95. 0 3
      src/Masuit.MyBlogs.Core/Models/Entity/Post.cs
  96. 0 2
      src/Masuit.MyBlogs.Core/Models/Entity/PostHistoryVersion.cs
  97. 0 2
      src/Masuit.MyBlogs.Core/Models/Entity/PostMergeRequest.cs
  98. 1 3
      src/Masuit.MyBlogs.Core/Models/Entity/PostTag.cs
  99. 1 3
      src/Masuit.MyBlogs.Core/Models/Entity/PostVisitRecord.cs
  100. 1 4
      src/Masuit.MyBlogs.Core/Models/Entity/PostVisitRecordStats.cs

+ 0 - 1
src/Masuit.MyBlogs.Core/Common/CommonHelper.cs

@@ -3,7 +3,6 @@ using AngleSharp.Css.Dom;
 using AngleSharp.Dom;
 using Dispose.Scope;
 using Masuit.Tools.Media;
-using Masuit.Tools.Models;
 using MaxMind.GeoIP2;
 using MaxMind.GeoIP2.Responses;
 using Polly;

+ 0 - 1
src/Masuit.MyBlogs.Core/Common/Mails/MailgunSender.cs

@@ -1,6 +1,5 @@
 using FreeRedis;
 using Hangfire;
-using Masuit.Tools.Models;
 using System.Net.Http.Headers;
 using System.Text;
 

+ 0 - 1
src/Masuit.MyBlogs.Core/Common/Mails/SmtpSender.cs

@@ -1,6 +1,5 @@
 using FreeRedis;
 using Hangfire;
-using Masuit.Tools.Models;
 
 namespace Masuit.MyBlogs.Core.Common.Mails;
 

+ 0 - 3
src/Masuit.MyBlogs.Core/Common/PerfCounter.cs

@@ -2,11 +2,8 @@
 using Masuit.Tools.Hardware;
 using Masuit.Tools.Logging;
 using Microsoft.Extensions.DependencyInjection.Extensions;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
 using System.Diagnostics;
 using System.Net.Sockets;
-using Microsoft.EntityFrameworkCore;
 
 namespace Masuit.MyBlogs.Core.Common;
 

+ 0 - 1
src/Masuit.MyBlogs.Core/Controllers/AdminController.cs

@@ -3,7 +3,6 @@ using Dispose.Scope;
 using FreeRedis;
 using Masuit.MyBlogs.Core.Configs;
 using Masuit.MyBlogs.Core.Extensions;
-using Microsoft.AspNetCore.Mvc;
 using Microsoft.AspNetCore.Mvc.Filters;
 
 namespace Masuit.MyBlogs.Core.Controllers;

+ 0 - 5
src/Masuit.MyBlogs.Core/Controllers/AdvertisementController.cs

@@ -1,15 +1,10 @@
 using AutoMapper.QueryableExtensions;
 using Dispose.Scope;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.Tools.AspNetCore.ModelBinder;
 using Masuit.Tools.AspNetCore.ResumeFileResults.Extensions;
 using Masuit.Tools.Excel;
-using Masuit.Tools.Models;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.EntityFrameworkCore;
 using Microsoft.Net.Http.Headers;
-using System.ComponentModel.DataAnnotations;
 using System.Net;
 using System.Text.RegularExpressions;
 using Masuit.Tools.Mime;

+ 0 - 2
src/Masuit.MyBlogs.Core/Controllers/BaseController.cs

@@ -1,11 +1,9 @@
 using System.Collections.Frozen;
 using AutoMapper;
 using FreeRedis;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Configs;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.MyBlogs.Core.Extensions.Firewall;
-using Microsoft.AspNetCore.Mvc;
 using Microsoft.AspNetCore.Mvc.Filters;
 using Microsoft.Net.Http.Headers;
 using System.Net;

+ 0 - 2
src/Masuit.MyBlogs.Core/Controllers/CategoryController.cs

@@ -1,7 +1,5 @@
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.Tools.AspNetCore.ModelBinder;
-using Masuit.Tools.Models;
-using Microsoft.AspNetCore.Mvc;
 
 namespace Masuit.MyBlogs.Core.Controllers;
 

+ 0 - 5
src/Masuit.MyBlogs.Core/Controllers/CommentController.cs

@@ -1,15 +1,10 @@
 using Dispose.Scope;
 using Hangfire;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Common.Mails;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.Tools.Html;
 using Masuit.Tools.Logging;
-using Masuit.Tools.Models;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.EntityFrameworkCore;
 using Microsoft.Net.Http.Headers;
-using System.ComponentModel.DataAnnotations;
 using System.Text;
 using System.Text.RegularExpressions;
 using SameSiteMode = Microsoft.AspNetCore.Http.SameSiteMode;

+ 0 - 1
src/Masuit.MyBlogs.Core/Controllers/DashboardController.cs

@@ -1,6 +1,5 @@
 using Masuit.Tools.AspNetCore.ModelBinder;
 using Masuit.Tools.Logging;
-using Microsoft.AspNetCore.Mvc;
 using Polly;
 using System.Text;
 using Dispose.Scope;

+ 0 - 1
src/Masuit.MyBlogs.Core/Controllers/DefaultController.cs

@@ -1,6 +1,5 @@
 using Masuit.MyBlogs.Core.Extensions.Firewall;
 using Masuit.Tools.AspNetCore.ModelBinder;
-using Microsoft.AspNetCore.Mvc;
 
 namespace Masuit.MyBlogs.Core.Controllers;
 

+ 0 - 2
src/Masuit.MyBlogs.Core/Controllers/DonateController.cs

@@ -1,7 +1,5 @@
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.Tools.AspNetCore.ModelBinder;
-using Microsoft.AspNetCore.Mvc;
-using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Controllers;
 

+ 0 - 1
src/Masuit.MyBlogs.Core/Controllers/Drive/AdminController.cs

@@ -3,7 +3,6 @@ using Masuit.MyBlogs.Core.Extensions.DriveHelpers;
 using Masuit.MyBlogs.Core.Infrastructure.Drive;
 using Masuit.MyBlogs.Core.Models.Drive;
 using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Mvc;
 using Newtonsoft.Json;
 using Newtonsoft.Json.Serialization;
 

+ 1 - 3
src/Masuit.MyBlogs.Core/Controllers/Drive/DriveController.cs

@@ -1,6 +1,4 @@
-using Masuit.MyBlogs.Core.Common;
-using Masuit.MyBlogs.Core.Extensions.Firewall;
-using Microsoft.AspNetCore.Mvc;
+using Masuit.MyBlogs.Core.Extensions.Firewall;
 using Microsoft.AspNetCore.Mvc.Filters;
 
 namespace Masuit.MyBlogs.Core.Controllers.Drive;

+ 0 - 2
src/Masuit.MyBlogs.Core/Controllers/Drive/SitesController.cs

@@ -1,9 +1,7 @@
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Extensions.DriveHelpers;
 using Masuit.MyBlogs.Core.Extensions.Firewall;
 using Masuit.MyBlogs.Core.Infrastructure.Drive;
 using Masuit.MyBlogs.Core.Models.Drive;
-using Microsoft.AspNetCore.Mvc;
 using Microsoft.AspNetCore.Mvc.Filters;
 using Newtonsoft.Json;
 using Newtonsoft.Json.Serialization;

+ 0 - 1
src/Masuit.MyBlogs.Core/Controllers/Drive/UserController.cs

@@ -3,7 +3,6 @@ using Masuit.MyBlogs.Core.Configs;
 using Masuit.MyBlogs.Core.Extensions.Hangfire;
 using Masuit.MyBlogs.Core.Models.Drive;
 using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Mvc;
 using System.Web;
 
 namespace Masuit.MyBlogs.Core.Controllers.Drive;

+ 0 - 3
src/Masuit.MyBlogs.Core/Controllers/ErrorController.cs

@@ -1,6 +1,5 @@
 using FreeRedis;
 using Hangfire;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Common.Mails;
 using Masuit.MyBlogs.Core.Configs;
 using Masuit.MyBlogs.Core.Extensions.Firewall;
@@ -8,8 +7,6 @@ using Masuit.Tools.Mime;
 using Masuit.Tools.Core.Validator;
 using Masuit.Tools.Logging;
 using Microsoft.AspNetCore.Diagnostics;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.EntityFrameworkCore;
 using Microsoft.Net.Http.Headers;
 using System.Diagnostics;
 using System.Text;

+ 0 - 2
src/Masuit.MyBlogs.Core/Controllers/FileController.cs

@@ -1,12 +1,10 @@
 using FreeRedis;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.Tools.AspNetCore.ModelBinder;
 using Masuit.Tools.AspNetCore.ResumeFileResults.Extensions;
 using Masuit.Tools.Files;
 using Masuit.Tools.Logging;
 using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Mvc;
 using Polly;
 using System.Diagnostics;
 using System.Text;

+ 0 - 2
src/Masuit.MyBlogs.Core/Controllers/FirewallController.cs

@@ -1,12 +1,10 @@
 using Dispose.Scope;
 using FreeRedis;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Configs;
 using Masuit.MyBlogs.Core.Extensions.Firewall;
 using Masuit.Tools.Mime;
 using Masuit.Tools.AspNetCore.ResumeFileResults.Extensions;
 using Microsoft.AspNetCore.Http.Extensions;
-using Microsoft.AspNetCore.Mvc;
 using Microsoft.Net.Http.Headers;
 using Newtonsoft.Json;
 using SameSiteMode = Microsoft.AspNetCore.Http.SameSiteMode;

+ 0 - 5
src/Masuit.MyBlogs.Core/Controllers/HomeController.cs

@@ -2,15 +2,10 @@
 using AngleSharp;
 using AutoMapper.QueryableExtensions;
 using Dispose.Scope;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.MyBlogs.Core.Models;
 using Masuit.Tools.Mime;
-using Masuit.Tools.Models;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.EntityFrameworkCore;
 using Microsoft.Net.Http.Headers;
-using System.ComponentModel.DataAnnotations;
 using System.Linq.Dynamic.Core;
 using System.Runtime.InteropServices;
 using System.Text;

+ 1 - 4
src/Masuit.MyBlogs.Core/Controllers/LinksController.cs

@@ -1,9 +1,6 @@
-using Masuit.MyBlogs.Core.Common;
-using Masuit.MyBlogs.Core.Extensions;
+using Masuit.MyBlogs.Core.Extensions;
 using Masuit.MyBlogs.Core.Extensions.Firewall;
 using Masuit.Tools.AspNetCore.ModelBinder;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.EntityFrameworkCore;
 using System.Text;
 using Dispose.Scope;
 

+ 1 - 3
src/Masuit.MyBlogs.Core/Controllers/LoginController.cs

@@ -1,6 +1,4 @@
-using Microsoft.AspNetCore.Mvc;
-
-namespace Masuit.MyBlogs.Core.Controllers;
+namespace Masuit.MyBlogs.Core.Controllers;
 
 [Route("login")]
 public sealed class LoginController : AdminController

+ 0 - 2
src/Masuit.MyBlogs.Core/Controllers/MenuController.cs

@@ -1,6 +1,4 @@
 using Masuit.Tools.AspNetCore.ModelBinder;
-using Masuit.Tools.Models;
-using Microsoft.AspNetCore.Mvc;
 
 namespace Masuit.MyBlogs.Core.Controllers;
 

+ 0 - 3
src/Masuit.MyBlogs.Core/Controllers/MergeController.cs

@@ -1,11 +1,8 @@
 using AutoMapper;
 using Hangfire;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Common.Mails;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.Tools.AspNetCore.ModelBinder;
-using Microsoft.AspNetCore.Mvc;
-using System.ComponentModel.DataAnnotations;
 using System.Text;
 using System.Text.RegularExpressions;
 

+ 1 - 3
src/Masuit.MyBlogs.Core/Controllers/MiscController.cs

@@ -1,7 +1,5 @@
-using Masuit.MyBlogs.Core.Common;
-using Masuit.MyBlogs.Core.Extensions;
+using Masuit.MyBlogs.Core.Extensions;
 using Masuit.Tools.AspNetCore.ModelBinder;
-using Microsoft.AspNetCore.Mvc;
 using System.Text;
 
 namespace Masuit.MyBlogs.Core.Controllers;

+ 0 - 5
src/Masuit.MyBlogs.Core/Controllers/MsgController.cs

@@ -1,15 +1,10 @@
 using Dispose.Scope;
 using Hangfire;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Common.Mails;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.Tools.Html;
 using Masuit.Tools.Logging;
-using Masuit.Tools.Models;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.EntityFrameworkCore;
 using Microsoft.Net.Http.Headers;
-using System.ComponentModel.DataAnnotations;
 using System.Text;
 using System.Text.RegularExpressions;
 using SameSiteMode = Microsoft.AspNetCore.Http.SameSiteMode;

+ 1 - 5
src/Masuit.MyBlogs.Core/Controllers/NoticeController.cs

@@ -1,11 +1,7 @@
-using Masuit.MyBlogs.Core.Common;
-using Masuit.MyBlogs.Core.Extensions;
+using Masuit.MyBlogs.Core.Extensions;
 using Masuit.MyBlogs.Core.Extensions.Firewall;
 using Masuit.MyBlogs.Core.Models;
 using Masuit.Tools.AspNetCore.ModelBinder;
-using Microsoft.AspNetCore.Mvc;
-using System.ComponentModel.DataAnnotations;
-using Microsoft.EntityFrameworkCore;
 
 namespace Masuit.MyBlogs.Core.Controllers;
 

+ 0 - 1
src/Masuit.MyBlogs.Core/Controllers/PassportController.cs

@@ -6,7 +6,6 @@ using Masuit.MyBlogs.Core.Extensions.Hangfire;
 using Masuit.Tools.Mime;
 using Masuit.Tools.AspNetCore.ResumeFileResults.Extensions;
 using Masuit.Tools.Logging;
-using Microsoft.AspNetCore.Mvc;
 using System.Net;
 using System.Web;
 using Dispose.Scope;

+ 0 - 5
src/Masuit.MyBlogs.Core/Controllers/PostController.cs

@@ -3,7 +3,6 @@ using Dispose.Scope;
 using Hangfire;
 using Masuit.LuceneEFCore.SearchEngine;
 using Masuit.LuceneEFCore.SearchEngine.Interfaces;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Common.Mails;
 using Masuit.MyBlogs.Core.Configs;
 using Masuit.MyBlogs.Core.Extensions;
@@ -15,12 +14,8 @@ using Masuit.Tools.Core.Validator;
 using Masuit.Tools.Excel;
 using Masuit.Tools.Html;
 using Masuit.Tools.Logging;
-using Masuit.Tools.Models;
 using Microsoft.AspNetCore.Http.Extensions;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.EntityFrameworkCore;
 using Microsoft.Net.Http.Headers;
-using System.ComponentModel.DataAnnotations;
 using System.Linq.Dynamic.Core;
 using System.Net;
 using System.Text;

+ 1 - 4
src/Masuit.MyBlogs.Core/Controllers/SearchController.cs

@@ -1,8 +1,5 @@
-using Masuit.MyBlogs.Core.Common;
-using Masuit.MyBlogs.Core.Extensions;
-using Microsoft.AspNetCore.Mvc;
+using Masuit.MyBlogs.Core.Extensions;
 using Microsoft.International.Converters.TraditionalChineseToSimplifiedConverter;
-using System.ComponentModel.DataAnnotations;
 using Dispose.Scope;
 using EFCoreSecondLevelCacheInterceptor;
 

+ 0 - 3
src/Masuit.MyBlogs.Core/Controllers/SeminarController.cs

@@ -1,10 +1,7 @@
 using Dispose.Scope;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.MyBlogs.Core.Models;
 using Masuit.Tools.AspNetCore.ModelBinder;
-using Microsoft.AspNetCore.Mvc;
-using System.ComponentModel.DataAnnotations;
 using System.Linq.Dynamic.Core;
 using System.Runtime.InteropServices;
 

+ 0 - 2
src/Masuit.MyBlogs.Core/Controllers/ShareController.cs

@@ -1,7 +1,5 @@
 using Dispose.Scope;
 using Masuit.Tools.AspNetCore.ModelBinder;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.EntityFrameworkCore;
 
 namespace Masuit.MyBlogs.Core.Controllers;
 

+ 0 - 1
src/Masuit.MyBlogs.Core/Controllers/ShortController.cs

@@ -1,7 +1,6 @@
 using FreeRedis;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.MyBlogs.Core.Extensions.Firewall;
-using Microsoft.AspNetCore.Mvc;
 
 namespace Masuit.MyBlogs.Core.Controllers;
 

+ 0 - 4
src/Masuit.MyBlogs.Core/Controllers/SubscribeController.cs

@@ -1,12 +1,8 @@
 using Dispose.Scope;
 using FreeRedis;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.MyBlogs.Core.Extensions.Firewall;
 using Masuit.Tools.Mime;
-using Masuit.Tools.Models;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.EntityFrameworkCore;
 using Microsoft.Extensions.Caching.Memory;
 using Microsoft.Net.Http.Headers;
 using System.Text;

+ 0 - 4
src/Masuit.MyBlogs.Core/Controllers/SystemController.cs

@@ -1,17 +1,13 @@
 using Collections.Pooled;
 using Dispose.Scope;
 using Hangfire;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Common.Mails;
 using Masuit.MyBlogs.Core.Extensions.Firewall;
 using Masuit.Tools.AspNetCore.ModelBinder;
 using Masuit.Tools.DateTimeExt;
 using Masuit.Tools.Hardware;
 using Masuit.Tools.Logging;
-using Masuit.Tools.Models;
-using Microsoft.AspNetCore.Mvc;
 using Newtonsoft.Json.Linq;
-using System.ComponentModel.DataAnnotations;
 using System.Diagnostics;
 using System.Net;
 using System.Net.Sockets;

+ 0 - 3
src/Masuit.MyBlogs.Core/Controllers/ToolsController.cs

@@ -1,13 +1,10 @@
 using AngleSharp;
 using DnsClient;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Configs;
 using Masuit.Tools.Mime;
 using Masuit.Tools.Core.Validator;
-using Masuit.Tools.Models;
 using MaxMind.GeoIP2.Exceptions;
 using MaxMind.GeoIP2.Responses;
-using Microsoft.AspNetCore.Mvc;
 using Microsoft.Net.Http.Headers;
 using Newtonsoft.Json;
 using Polly;

+ 0 - 3
src/Masuit.MyBlogs.Core/Controllers/UploadController.cs

@@ -1,15 +1,12 @@
 using AngleSharp;
 using DocumentFormat.OpenXml.Packaging;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Extensions.Firewall;
 using Masuit.MyBlogs.Core.Extensions.UEditor;
 using Masuit.Tools.AspNetCore.ResumeFileResults.Extensions;
 using Masuit.Tools.Html;
 using Masuit.Tools.Logging;
-using Microsoft.AspNetCore.Mvc;
 using OpenXmlPowerTools;
 using Polly;
-using System.ComponentModel.DataAnnotations;
 using System.Diagnostics;
 using System.Text.RegularExpressions;
 using System.Xml.Linq;

+ 0 - 1
src/Masuit.MyBlogs.Core/Controllers/UserController.cs

@@ -1,5 +1,4 @@
 using Masuit.Tools.AspNetCore.ModelBinder;
-using Microsoft.AspNetCore.Mvc;
 using System.Net;
 
 namespace Masuit.MyBlogs.Core.Controllers;

+ 0 - 1
src/Masuit.MyBlogs.Core/Controllers/ValidateController.cs

@@ -1,7 +1,6 @@
 using Hangfire;
 using Masuit.MyBlogs.Core.Common.Mails;
 using Masuit.Tools.Core.Validator;
-using Microsoft.AspNetCore.Mvc;
 
 namespace Masuit.MyBlogs.Core.Controllers;
 

+ 0 - 2
src/Masuit.MyBlogs.Core/Controllers/ValuesController.cs

@@ -1,6 +1,4 @@
 using Masuit.Tools.AspNetCore.ModelBinder;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.EntityFrameworkCore;
 
 namespace Masuit.MyBlogs.Core.Controllers;
 

+ 0 - 1
src/Masuit.MyBlogs.Core/EFCoreCacheProvider.cs

@@ -1,6 +1,5 @@
 using EFCoreSecondLevelCacheInterceptor;
 using FreeRedis;
-using Masuit.MyBlogs.Core.Common;
 
 namespace Masuit.MyBlogs.Core;
 

+ 1 - 2
src/Masuit.MyBlogs.Core/Extensions/Firewall/CloudflareRepoter.cs

@@ -1,5 +1,4 @@
-using Masuit.MyBlogs.Core.Common;
-using Masuit.Tools.Logging;
+using Masuit.Tools.Logging;
 using Polly;
 using System.Net;
 using System.Net.Sockets;

+ 0 - 2
src/Masuit.MyBlogs.Core/Extensions/Firewall/FirewallAttribute.cs

@@ -1,11 +1,9 @@
 using FreeRedis;
 using Markdig;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Configs;
 using Masuit.MyBlogs.Core.Controllers;
 using Masuit.Tools.Mime;
 using Masuit.Tools.Logging;
-using Microsoft.AspNetCore.Mvc;
 using Microsoft.AspNetCore.Mvc.Filters;
 using Microsoft.Extensions.Caching.Memory;
 using Microsoft.Net.Http.Headers;

+ 1 - 3
src/Masuit.MyBlogs.Core/Extensions/Firewall/IRequestLogger.cs

@@ -1,8 +1,6 @@
-using Masuit.MyBlogs.Core.Common;
-using Microsoft.Extensions.DependencyInjection.Extensions;
+using Microsoft.Extensions.DependencyInjection.Extensions;
 using System.Collections.Concurrent;
 using System.Diagnostics;
-using Microsoft.EntityFrameworkCore;
 
 namespace Masuit.MyBlogs.Core.Extensions.Firewall;
 

+ 0 - 1
src/Masuit.MyBlogs.Core/Extensions/Firewall/RequestInterceptMiddleware.cs

@@ -3,7 +3,6 @@ using System.Text.RegularExpressions;
 using System.Web;
 using FreeRedis;
 using Hangfire;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Configs;
 using Masuit.MyBlogs.Core.Extensions.Hangfire;
 using Microsoft.Net.Http.Headers;

+ 0 - 2
src/Masuit.MyBlogs.Core/Extensions/Hangfire/HangfireBackJob.cs

@@ -1,9 +1,7 @@
 using FreeRedis;
 using Masuit.LuceneEFCore.SearchEngine.Interfaces;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Common.Mails;
 using Masuit.Tools.Logging;
-using Microsoft.EntityFrameworkCore;
 using System.Net;
 
 namespace Masuit.MyBlogs.Core.Extensions.Hangfire;

+ 0 - 1
src/Masuit.MyBlogs.Core/Extensions/MiddlewareExtension.cs

@@ -2,7 +2,6 @@
 using AutoMapper.Extensions.ExpressionMapping;
 using Masuit.MyBlogs.Core.Configs;
 using Masuit.Tools.Mime;
-using Microsoft.AspNetCore.Mvc;
 using Microsoft.AspNetCore.Mvc.Filters;
 using Microsoft.AspNetCore.ResponseCompression;
 using Microsoft.Extensions.WebEncoders;

+ 0 - 1
src/Masuit.MyBlogs.Core/Extensions/MyAuthorizeAttribute.cs

@@ -1,6 +1,5 @@
 using Masuit.MyBlogs.Core.Configs;
 using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Mvc;
 using Microsoft.AspNetCore.Mvc.Filters;
 using System.Web;
 

+ 1 - 2
src/Masuit.MyBlogs.Core/Extensions/TranslateMiddleware.cs

@@ -1,5 +1,4 @@
-using Masuit.MyBlogs.Core.Common;
-using Masuit.Tools.Mime;
+using Masuit.Tools.Mime;
 using Microsoft.International.Converters.TraditionalChineseToSimplifiedConverter;
 using System.Text;
 

+ 1 - 2
src/Masuit.MyBlogs.Core/Extensions/UEditor/CrawlerHandler.cs

@@ -1,5 +1,4 @@
-using Masuit.MyBlogs.Core.Common;
-using Masuit.Tools.Mime;
+using Masuit.Tools.Mime;
 using System.Net;
 using System.Text.RegularExpressions;
 using Masuit.Tools.Files;

+ 1 - 2
src/Masuit.MyBlogs.Core/Extensions/UEditor/UploadHandler.cs

@@ -1,5 +1,4 @@
-using Masuit.MyBlogs.Core.Common;
-using Masuit.Tools.Logging;
+using Masuit.Tools.Logging;
 using System.Diagnostics;
 using System.Text.RegularExpressions;
 

+ 7 - 1
src/Masuit.MyBlogs.Core/global.usings.cs → src/Masuit.MyBlogs.Core/GlobalUsings.cs

@@ -1,4 +1,10 @@
-global using Masuit.MyBlogs.Core.Infrastructure;
+global using System.ComponentModel.DataAnnotations;
+global using System.ComponentModel.DataAnnotations.Schema;
+global using Masuit.MyBlogs.Core.Common;
+global using Masuit.Tools.Models;
+global using Microsoft.AspNetCore.Mvc;
+global using Microsoft.EntityFrameworkCore;
+global using Masuit.MyBlogs.Core.Infrastructure;
 global using Masuit.MyBlogs.Core.Infrastructure.Repository;
 global using Masuit.MyBlogs.Core.Infrastructure.Services.Interface;
 global using Masuit.MyBlogs.Core.Models.Command;

+ 0 - 1
src/Masuit.MyBlogs.Core/Infrastructure/DataContext.cs

@@ -1,7 +1,6 @@
 using System.Reflection;
 using EntityFramework.Exceptions.Common;
 using EntityFramework.Exceptions.PostgreSQL;
-using Microsoft.EntityFrameworkCore;
 using Microsoft.EntityFrameworkCore.Diagnostics;
 using Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping;
 

+ 0 - 1
src/Masuit.MyBlogs.Core/Infrastructure/DriveContext.cs

@@ -1,6 +1,5 @@
 using Masuit.MyBlogs.Core.Extensions.DriveHelpers;
 using Masuit.MyBlogs.Core.Models.Drive;
-using Microsoft.EntityFrameworkCore;
 using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 
 namespace Masuit.MyBlogs.Core.Infrastructure;

+ 1 - 4
src/Masuit.MyBlogs.Core/Infrastructure/LoggerDbContext.cs

@@ -1,7 +1,4 @@
-using Masuit.MyBlogs.Core.Common;
-using Microsoft.EntityFrameworkCore;
-
-namespace Masuit.MyBlogs.Core.Infrastructure;
+namespace Masuit.MyBlogs.Core.Infrastructure;
 
 public sealed class LoggerDbContext(DbContextOptions<LoggerDbContext> options) : DbContext(options)
 {

+ 0 - 2
src/Masuit.MyBlogs.Core/Infrastructure/Repository/BaseRepository.cs

@@ -6,8 +6,6 @@ using EFCoreSecondLevelCacheInterceptor;
 using Masuit.LuceneEFCore.SearchEngine;
 using Masuit.MyBlogs.Core.Infrastructure.Repository.Interface;
 using Masuit.Tools.Core.AspNetCore;
-using Masuit.Tools.Models;
-using Microsoft.EntityFrameworkCore;
 
 namespace Masuit.MyBlogs.Core.Infrastructure.Repository;
 

+ 0 - 1
src/Masuit.MyBlogs.Core/Infrastructure/Repository/Interface/IBaseRepository.cs

@@ -1,7 +1,6 @@
 using Collections.Pooled;
 using Dispose.Scope;
 using Masuit.LuceneEFCore.SearchEngine;
-using Masuit.Tools.Models;
 
 namespace Masuit.MyBlogs.Core.Infrastructure.Repository.Interface;
 

+ 0 - 1
src/Masuit.MyBlogs.Core/Infrastructure/Repository/PostRepository.cs

@@ -2,7 +2,6 @@
 using Dispose.Scope;
 using EFCoreSecondLevelCacheInterceptor;
 using Masuit.MyBlogs.Core.Infrastructure.Repository.Interface;
-using Microsoft.EntityFrameworkCore;
 
 namespace Masuit.MyBlogs.Core.Infrastructure.Repository;
 

+ 0 - 2
src/Masuit.MyBlogs.Core/Infrastructure/Repository/QueryableExt.cs

@@ -2,8 +2,6 @@
 using AutoMapper.QueryableExtensions;
 using EFCoreSecondLevelCacheInterceptor;
 using Masuit.LuceneEFCore.SearchEngine;
-using Masuit.Tools.Models;
-using Microsoft.EntityFrameworkCore;
 
 namespace Masuit.MyBlogs.Core.Infrastructure.Repository;
 

+ 0 - 2
src/Masuit.MyBlogs.Core/Infrastructure/Services/AdvertisementService.cs

@@ -1,7 +1,5 @@
 using Masuit.LuceneEFCore.SearchEngine.Interfaces;
-using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Infrastructure.Repository.Interface;
-using Microsoft.EntityFrameworkCore;
 using System.Text.RegularExpressions;
 using FreeRedis;
 

+ 0 - 1
src/Masuit.MyBlogs.Core/Infrastructure/Services/BaseService.cs

@@ -2,7 +2,6 @@
 using Masuit.LuceneEFCore.SearchEngine;
 using Masuit.LuceneEFCore.SearchEngine.Interfaces;
 using Masuit.MyBlogs.Core.Infrastructure.Repository.Interface;
-using Masuit.Tools.Models;
 
 namespace Masuit.MyBlogs.Core.Infrastructure.Services;
 

+ 1 - 3
src/Masuit.MyBlogs.Core/Infrastructure/Services/Interface/IAdvertisementService.cs

@@ -1,6 +1,4 @@
-using Masuit.MyBlogs.Core.Common;
-
-namespace Masuit.MyBlogs.Core.Infrastructure.Services.Interface
+namespace Masuit.MyBlogs.Core.Infrastructure.Services.Interface
 {
 	public partial interface IAdvertisementService : IBaseService<Advertisement>
 	{

+ 0 - 1
src/Masuit.MyBlogs.Core/Infrastructure/Services/Interface/IBaseService.cs

@@ -1,7 +1,6 @@
 using Collections.Pooled;
 using Dispose.Scope;
 using Masuit.LuceneEFCore.SearchEngine;
-using Masuit.Tools.Models;
 
 namespace Masuit.MyBlogs.Core.Infrastructure.Services.Interface;
 

+ 0 - 2
src/Masuit.MyBlogs.Core/Infrastructure/Services/PostService.cs

@@ -8,14 +8,12 @@ using Masuit.LuceneEFCore.SearchEngine;
 using Masuit.LuceneEFCore.SearchEngine.Interfaces;
 using Masuit.MyBlogs.Core.Infrastructure.Repository.Interface;
 using Masuit.Tools.Html;
-using Microsoft.EntityFrameworkCore;
 using PanGu;
 using PanGu.HighLight;
 using System.Reflection;
 using System.Text.RegularExpressions;
 using EFCoreSecondLevelCacheInterceptor;
 using FreeRedis;
-using Masuit.MyBlogs.Core.Common;
 using Configuration = AngleSharp.Configuration;
 
 namespace Masuit.MyBlogs.Core.Infrastructure.Services;

+ 0 - 2
src/Masuit.MyBlogs.Core/Models/Command/CategoryCommand.cs

@@ -1,5 +1,3 @@
-using System.ComponentModel.DataAnnotations;
-
 namespace Masuit.MyBlogs.Core.Models.Command;
 
 /// <summary>

+ 0 - 1
src/Masuit.MyBlogs.Core/Models/Command/CommentCommand.cs

@@ -1,6 +1,5 @@
 using Masuit.MyBlogs.Core.Models.Validation;
 using Masuit.Tools.Core.Validator;
-using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.Command;
 

+ 0 - 1
src/Masuit.MyBlogs.Core/Models/Command/LeaveMessageCommand.cs

@@ -1,6 +1,5 @@
 using Masuit.MyBlogs.Core.Models.Validation;
 using Masuit.Tools.Core.Validator;
-using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.Command;
 

+ 0 - 2
src/Masuit.MyBlogs.Core/Models/Command/MenuCommand.cs

@@ -1,5 +1,3 @@
-using System.ComponentModel.DataAnnotations;
-
 namespace Masuit.MyBlogs.Core.Models.Command;
 
 /// <summary>

+ 0 - 1
src/Masuit.MyBlogs.Core/Models/Command/PostMergeRequestCommand.cs

@@ -1,5 +1,4 @@
 using Masuit.Tools.Core.Validator;
-using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.Command;
 

+ 0 - 1
src/Masuit.MyBlogs.Core/Models/Command/PostMergeRequestCommandBase.cs

@@ -1,5 +1,4 @@
 using Masuit.MyBlogs.Core.Models.Validation;
-using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.Command;
 

+ 1 - 3
src/Masuit.MyBlogs.Core/Models/DTO/AdvertisementDto.cs

@@ -1,6 +1,4 @@
-using System.ComponentModel.DataAnnotations;
-
-namespace Masuit.MyBlogs.Core.Models.DTO;
+namespace Masuit.MyBlogs.Core.Models.DTO;
 
 public class AdvertisementDto : BaseDto
 {

+ 1 - 3
src/Masuit.MyBlogs.Core/Models/DTO/CategoryDto.cs

@@ -1,6 +1,4 @@
-using Masuit.Tools.Models;
-
-namespace Masuit.MyBlogs.Core.Models.DTO;
+namespace Masuit.MyBlogs.Core.Models.DTO;
 
 /// <summary>
 /// 文章分类输出模型

+ 1 - 3
src/Masuit.MyBlogs.Core/Models/DTO/CategoryDto_P.cs

@@ -1,6 +1,4 @@
-using Masuit.Tools.Models;
-
-namespace Masuit.MyBlogs.Core.Models.DTO;
+namespace Masuit.MyBlogs.Core.Models.DTO;
 
 /// <summary>
 /// 文章分类输出模型

+ 1 - 3
src/Masuit.MyBlogs.Core/Models/DTO/MenuDto.cs

@@ -1,6 +1,4 @@
-using Masuit.Tools.Models;
-
-namespace Masuit.MyBlogs.Core.Models.DTO;
+namespace Masuit.MyBlogs.Core.Models.DTO;
 
 /// <summary>
 /// 导航菜单输出模型

+ 0 - 1
src/Masuit.MyBlogs.Core/Models/DTO/PostCommand.cs

@@ -1,6 +1,5 @@
 using Masuit.MyBlogs.Core.Models.Validation;
 using Masuit.Tools.Core.Validator;
-using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.DTO;
 

+ 1 - 3
src/Masuit.MyBlogs.Core/Models/DTO/SearchDetailsDto.cs

@@ -1,6 +1,4 @@
-using Masuit.MyBlogs.Core.Common;
-
-namespace Masuit.MyBlogs.Core.Models.DTO;
+namespace Masuit.MyBlogs.Core.Models.DTO;
 
 /// <summary>
 /// 搜索详情输出模型

+ 0 - 1
src/Masuit.MyBlogs.Core/Models/DTO/UserInfoDto.cs

@@ -1,6 +1,5 @@
 using Masuit.Tools.Core.Validator;
 using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.DTO;
 

+ 0 - 2
src/Masuit.MyBlogs.Core/Models/Drive/Setting.cs

@@ -1,5 +1,3 @@
-using System.ComponentModel.DataAnnotations;
-
 namespace Masuit.MyBlogs.Core.Models.Drive;
 
 public class Setting

+ 0 - 1
src/Masuit.MyBlogs.Core/Models/Drive/Site.cs

@@ -1,5 +1,4 @@
 using Newtonsoft.Json;
-using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.Drive;
 

+ 0 - 2
src/Masuit.MyBlogs.Core/Models/Entity/Advertisement.cs

@@ -1,6 +1,4 @@
 using Masuit.Tools.Core.AspNetCore;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
 
 namespace Masuit.MyBlogs.Core.Models.Entity;
 

+ 1 - 3
src/Masuit.MyBlogs.Core/Models/Entity/AdvertisementClickRecord.cs

@@ -1,6 +1,4 @@
-using System.ComponentModel.DataAnnotations.Schema;
-
-namespace Masuit.MyBlogs.Core.Models.Entity;
+namespace Masuit.MyBlogs.Core.Models.Entity;
 
 [Table("AdvertisementClickRecord")]
 public class AdvertisementClickRecord : BaseEntity

+ 0 - 4
src/Masuit.MyBlogs.Core/Models/Entity/Category.cs

@@ -1,7 +1,3 @@
-using Masuit.Tools.Models;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-using Microsoft.EntityFrameworkCore;
 using Microsoft.EntityFrameworkCore.Metadata.Builders;
 
 namespace Masuit.MyBlogs.Core.Models.Entity;

+ 0 - 4
src/Masuit.MyBlogs.Core/Models/Entity/Comment.cs

@@ -1,9 +1,5 @@
 using Masuit.Tools.Core.Validator;
-using Masuit.Tools.Models;
 using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-using Microsoft.EntityFrameworkCore;
 using Microsoft.EntityFrameworkCore.Metadata.Builders;
 
 namespace Masuit.MyBlogs.Core.Models.Entity;

+ 1 - 3
src/Masuit.MyBlogs.Core/Models/Entity/Donate.cs

@@ -1,6 +1,4 @@
-using System.ComponentModel.DataAnnotations.Schema;
-
-namespace Masuit.MyBlogs.Core.Models.Entity;
+namespace Masuit.MyBlogs.Core.Models.Entity;
 
 /// <summary>
 /// 打赏表

+ 1 - 2
src/Masuit.MyBlogs.Core/Models/Entity/EmailBlocklist.cs

@@ -1,5 +1,4 @@
-using System.ComponentModel.DataAnnotations.Schema;
-using Masuit.LuceneEFCore.SearchEngine;
+using Masuit.LuceneEFCore.SearchEngine;
 
 namespace Masuit.MyBlogs.Core.Models.Entity;
 

+ 1 - 3
src/Masuit.MyBlogs.Core/Models/Entity/FastShare.cs

@@ -1,6 +1,4 @@
-using System.ComponentModel.DataAnnotations.Schema;
-
-namespace Masuit.MyBlogs.Core.Models.Entity;
+namespace Masuit.MyBlogs.Core.Models.Entity;
 
 [Table(nameof(FastShare))]
 public class FastShare : BaseEntity

+ 1 - 3
src/Masuit.MyBlogs.Core/Models/Entity/InternalMessage.cs

@@ -1,6 +1,4 @@
-using System.ComponentModel.DataAnnotations.Schema;
-
-namespace Masuit.MyBlogs.Core.Models.Entity;
+namespace Masuit.MyBlogs.Core.Models.Entity;
 
 /// <summary>
 /// 站内信消息通知

+ 0 - 4
src/Masuit.MyBlogs.Core/Models/Entity/LeaveMessage.cs

@@ -1,10 +1,6 @@
 using Masuit.MyBlogs.Core.Models.Validation;
 using Masuit.Tools.Core.Validator;
-using Masuit.Tools.Models;
 using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-using Microsoft.EntityFrameworkCore;
 using Microsoft.EntityFrameworkCore.Metadata.Builders;
 using System.Reflection.Emit;
 

+ 0 - 2
src/Masuit.MyBlogs.Core/Models/Entity/LinkLoopback.cs

@@ -1,5 +1,3 @@
-using System.ComponentModel.DataAnnotations.Schema;
-
 namespace Masuit.MyBlogs.Core.Models.Entity;
 
 [Table("LinkLoopback")]

+ 0 - 2
src/Masuit.MyBlogs.Core/Models/Entity/Links.cs

@@ -1,6 +1,4 @@
 using Masuit.Tools.Core.AspNetCore;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
 
 namespace Masuit.MyBlogs.Core.Models.Entity;
 

+ 1 - 3
src/Masuit.MyBlogs.Core/Models/Entity/LoginRecord.cs

@@ -1,6 +1,4 @@
-using System.ComponentModel.DataAnnotations.Schema;
-
-namespace Masuit.MyBlogs.Core.Models.Entity;
+namespace Masuit.MyBlogs.Core.Models.Entity;
 
 /// <summary>
 /// 用户登陆记录

+ 0 - 4
src/Masuit.MyBlogs.Core/Models/Entity/Menu.cs

@@ -1,7 +1,3 @@
-using Masuit.Tools.Models;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-
 namespace Masuit.MyBlogs.Core.Models.Entity;
 
 /// <summary>

+ 0 - 2
src/Masuit.MyBlogs.Core/Models/Entity/Misc.cs

@@ -1,6 +1,4 @@
 using Masuit.MyBlogs.Core.Models.Validation;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
 
 namespace Masuit.MyBlogs.Core.Models.Entity;
 

+ 0 - 2
src/Masuit.MyBlogs.Core/Models/Entity/Notice.cs

@@ -1,6 +1,4 @@
 using Masuit.MyBlogs.Core.Models.Validation;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
 
 namespace Masuit.MyBlogs.Core.Models.Entity;
 

+ 0 - 3
src/Masuit.MyBlogs.Core/Models/Entity/Post.cs

@@ -1,9 +1,6 @@
 using Masuit.LuceneEFCore.SearchEngine;
 using Masuit.MyBlogs.Core.Models.Validation;
 using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-using Microsoft.EntityFrameworkCore;
 using Microsoft.EntityFrameworkCore.Metadata.Builders;
 
 namespace Masuit.MyBlogs.Core.Models.Entity;

+ 0 - 2
src/Masuit.MyBlogs.Core/Models/Entity/PostHistoryVersion.cs

@@ -1,7 +1,5 @@
 using Masuit.Tools.Core.Validator;
 using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
 
 namespace Masuit.MyBlogs.Core.Models.Entity;
 

+ 0 - 2
src/Masuit.MyBlogs.Core/Models/Entity/PostMergeRequest.cs

@@ -1,5 +1,3 @@
-using System.ComponentModel.DataAnnotations.Schema;
-
 namespace Masuit.MyBlogs.Core.Models.Entity;
 
 /// <summary>

+ 1 - 3
src/Masuit.MyBlogs.Core/Models/Entity/PostTag.cs

@@ -1,6 +1,4 @@
-using System.ComponentModel.DataAnnotations.Schema;
-
-namespace Masuit.MyBlogs.Core.Models.Entity;
+namespace Masuit.MyBlogs.Core.Models.Entity;
 
 [Table("PostTag")]
 public class PostTag : BaseEntity

+ 1 - 3
src/Masuit.MyBlogs.Core/Models/Entity/PostVisitRecord.cs

@@ -1,6 +1,4 @@
-using System.ComponentModel.DataAnnotations.Schema;
-
-namespace Masuit.MyBlogs.Core.Models.Entity;
+namespace Masuit.MyBlogs.Core.Models.Entity;
 
 [Table("PostVisitRecord")]
 public class PostVisitRecord : BaseEntity

+ 1 - 4
src/Masuit.MyBlogs.Core/Models/Entity/PostVisitRecordStats.cs

@@ -1,7 +1,4 @@
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-
-namespace Masuit.MyBlogs.Core.Models.Entity;
+namespace Masuit.MyBlogs.Core.Models.Entity;
 
 [Table("PostVisitRecordStats")]
 public class PostVisitRecordStats : BaseEntity

Some files were not shown because too many files changed in this diff