소스 검색

代码清理

懒得勤快 5 년 전
부모
커밋
c685e389d5
23개의 변경된 파일27개의 추가작업 그리고 44개의 파일을 삭제
  1. 1 1
      src/Masuit.MyBlogs.Core/Configs/MappingProfile.cs
  2. 1 1
      src/Masuit.MyBlogs.Core/Controllers/CategoryController.cs
  3. 1 2
      src/Masuit.MyBlogs.Core/Controllers/CommentController.cs
  4. 1 2
      src/Masuit.MyBlogs.Core/Controllers/MenuController.cs
  5. 1 1
      src/Masuit.MyBlogs.Core/Controllers/MergeController.cs
  6. 1 2
      src/Masuit.MyBlogs.Core/Controllers/MsgController.cs
  7. 1 1
      src/Masuit.MyBlogs.Core/Controllers/PostController.cs
  8. 1 12
      src/Masuit.MyBlogs.Core/Extensions/MyAuthorizeAttribute.cs
  9. 2 2
      src/Masuit.MyBlogs.Core/Infrastructure/Services/UserInfoService.cs
  10. 1 1
      src/Masuit.MyBlogs.Core/Models/Command/BroadcastCommand.cs
  11. 1 1
      src/Masuit.MyBlogs.Core/Models/Command/CategoryCommand.cs
  12. 1 1
      src/Masuit.MyBlogs.Core/Models/Command/CommentCommand.cs
  13. 1 1
      src/Masuit.MyBlogs.Core/Models/Command/LeaveMessageCommand.cs
  14. 1 1
      src/Masuit.MyBlogs.Core/Models/Command/LinksCommand.cs
  15. 2 2
      src/Masuit.MyBlogs.Core/Models/Command/MenuCommand.cs
  16. 1 1
      src/Masuit.MyBlogs.Core/Models/Command/MiscCommand.cs
  17. 1 1
      src/Masuit.MyBlogs.Core/Models/Command/PostMergeRequestCommand.cs
  18. 1 1
      src/Masuit.MyBlogs.Core/Models/Command/PostMergeRequestCommandBase.cs
  19. 2 2
      src/Masuit.MyBlogs.Core/Models/Command/SeminarCommand.cs
  20. 2 2
      src/Masuit.MyBlogs.Core/Models/Command/UserInfoCommand.cs
  21. 1 2
      src/Masuit.MyBlogs.Core/Views/Error/Index.cshtml
  22. 1 2
      src/Masuit.MyBlogs.Core/Views/Links/Index.cshtml
  23. 1 2
      src/Masuit.MyBlogs.Core/Views/Links/Index_Admin.cshtml

+ 1 - 1
src/Masuit.MyBlogs.Core/Configs/MappingProfile.cs

@@ -1,4 +1,5 @@
 using AutoMapper;
+using Masuit.MyBlogs.Core.Models.Command;
 using Masuit.MyBlogs.Core.Models.DTO;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
@@ -6,7 +7,6 @@ using Masuit.MyBlogs.Core.Models.ViewModel;
 using Masuit.Tools.Systems;
 using System;
 using System.Linq;
-using Masuit.MyBlogs.Core.Models.Command;
 
 namespace Masuit.MyBlogs.Core.Configs
 {

+ 1 - 1
src/Masuit.MyBlogs.Core/Controllers/CategoryController.cs

@@ -2,13 +2,13 @@
 using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.MyBlogs.Core.Infrastructure.Services.Interface;
+using Masuit.MyBlogs.Core.Models.Command;
 using Masuit.MyBlogs.Core.Models.DTO;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
 using Microsoft.AspNetCore.Mvc;
 using System.Linq;
 using System.Threading.Tasks;
-using Masuit.MyBlogs.Core.Models.Command;
 
 namespace Masuit.MyBlogs.Core.Controllers
 {

+ 1 - 2
src/Masuit.MyBlogs.Core/Controllers/CommentController.cs

@@ -2,6 +2,7 @@
 using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.MyBlogs.Core.Infrastructure.Services.Interface;
+using Masuit.MyBlogs.Core.Models.Command;
 using Masuit.MyBlogs.Core.Models.DTO;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
@@ -16,11 +17,9 @@ using Microsoft.EntityFrameworkCore.Internal;
 using Microsoft.Net.Http.Headers;
 using System;
 using System.Collections.Generic;
-using System.IO;
 using System.Linq;
 using System.Text.RegularExpressions;
 using System.Threading.Tasks;
-using Masuit.MyBlogs.Core.Models.Command;
 
 namespace Masuit.MyBlogs.Core.Controllers
 {

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

@@ -1,6 +1,6 @@
 using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Infrastructure.Services.Interface;
-using Masuit.MyBlogs.Core.Models.DTO;
+using Masuit.MyBlogs.Core.Models.Command;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
 using Masuit.Tools.Systems;
@@ -8,7 +8,6 @@ using Microsoft.AspNetCore.Mvc;
 using System;
 using System.Collections.Generic;
 using System.Linq;
-using Masuit.MyBlogs.Core.Models.Command;
 
 namespace Masuit.MyBlogs.Core.Controllers
 {

+ 1 - 1
src/Masuit.MyBlogs.Core/Controllers/MergeController.cs

@@ -5,6 +5,7 @@ using Masuit.LuceneEFCore.SearchEngine.Linq;
 using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.MyBlogs.Core.Infrastructure.Services.Interface;
+using Masuit.MyBlogs.Core.Models.Command;
 using Masuit.MyBlogs.Core.Models.DTO;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
@@ -15,7 +16,6 @@ using System;
 using System.Linq;
 using System.Linq.Expressions;
 using System.Text.RegularExpressions;
-using Masuit.MyBlogs.Core.Models.Command;
 
 namespace Masuit.MyBlogs.Core.Controllers
 {

+ 1 - 2
src/Masuit.MyBlogs.Core/Controllers/MsgController.cs

@@ -2,6 +2,7 @@
 using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Extensions;
 using Masuit.MyBlogs.Core.Infrastructure.Services.Interface;
+using Masuit.MyBlogs.Core.Models.Command;
 using Masuit.MyBlogs.Core.Models.DTO;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
@@ -15,10 +16,8 @@ using Microsoft.EntityFrameworkCore.Internal;
 using Microsoft.Net.Http.Headers;
 using System;
 using System.Collections.Generic;
-using System.IO;
 using System.Linq;
 using System.Text.RegularExpressions;
-using Masuit.MyBlogs.Core.Models.Command;
 
 namespace Masuit.MyBlogs.Core.Controllers
 {

+ 1 - 1
src/Masuit.MyBlogs.Core/Controllers/PostController.cs

@@ -11,6 +11,7 @@ using Masuit.MyBlogs.Core.Extensions.Hangfire;
 using Masuit.MyBlogs.Core.Infrastructure;
 using Masuit.MyBlogs.Core.Infrastructure.Services.Interface;
 using Masuit.MyBlogs.Core.Models;
+using Masuit.MyBlogs.Core.Models.Command;
 using Masuit.MyBlogs.Core.Models.DTO;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
@@ -34,7 +35,6 @@ using System.Linq.Dynamic.Core;
 using System.Linq.Expressions;
 using System.Text.RegularExpressions;
 using System.Threading.Tasks;
-using Masuit.MyBlogs.Core.Models.Command;
 
 namespace Masuit.MyBlogs.Core.Controllers
 {

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

@@ -1,17 +1,6 @@
-using Masuit.MyBlogs.Core.Configs;
-using Masuit.MyBlogs.Core.Infrastructure.Services.Interface;
-using Masuit.MyBlogs.Core.Models.DTO;
-using Masuit.MyBlogs.Core.Models.ViewModel;
-using Masuit.Tools.Core.Net;
-using Masuit.Tools.Security;
-using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Http;
-using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Authorization;
 using Microsoft.AspNetCore.Mvc.Filters;
-using Microsoft.Extensions.DependencyInjection;
-using System;
 using System.Linq;
-using System.Web;
 
 namespace Masuit.MyBlogs.Core.Extensions
 {

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

@@ -1,5 +1,4 @@
-using System;
-using Masuit.LuceneEFCore.SearchEngine.Interfaces;
+using Masuit.LuceneEFCore.SearchEngine.Interfaces;
 using Masuit.MyBlogs.Core.Common;
 using Masuit.MyBlogs.Core.Infrastructure.Repository.Interface;
 using Masuit.MyBlogs.Core.Infrastructure.Services.Interface;
@@ -8,6 +7,7 @@ using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.Tools;
 using Masuit.Tools.DateTimeExt;
 using Masuit.Tools.Security;
+using System;
 
 namespace Masuit.MyBlogs.Core.Infrastructure.Services
 {

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

@@ -1,7 +1,7 @@
-using System;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
 using Masuit.Tools.Core.Validator;
+using System;
 
 namespace Masuit.MyBlogs.Core.Models.Command
 {

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

@@ -1,6 +1,6 @@
-using System.ComponentModel.DataAnnotations;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
+using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.Command
 {

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

@@ -1,8 +1,8 @@
-using System.ComponentModel.DataAnnotations;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
 using Masuit.MyBlogs.Core.Models.Validation;
 using Masuit.Tools.Core.Validator;
+using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.Command
 {

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

@@ -1,8 +1,8 @@
-using System.ComponentModel.DataAnnotations;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
 using Masuit.MyBlogs.Core.Models.Validation;
 using Masuit.Tools.Core.Validator;
+using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.Command
 {

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

@@ -1,6 +1,6 @@
-using System.ComponentModel.DataAnnotations;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
+using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.Command
 {

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

@@ -1,7 +1,7 @@
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.Command
 {

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

@@ -1,7 +1,7 @@
-using System.ComponentModel.DataAnnotations;
 using Masuit.MyBlogs.Core.Models.Entity;
 using Masuit.MyBlogs.Core.Models.Enum;
 using Masuit.MyBlogs.Core.Models.Validation;
+using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.Command
 {

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

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

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

@@ -1,6 +1,6 @@
-using System.ComponentModel.DataAnnotations;
 using Masuit.MyBlogs.Core.Models.DTO;
 using Masuit.MyBlogs.Core.Models.Validation;
+using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.Command
 {

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

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

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

@@ -1,7 +1,7 @@
-using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
 using Masuit.MyBlogs.Core.Models.DTO;
 using Masuit.Tools.Core.Validator;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
 
 namespace Masuit.MyBlogs.Core.Models.Command
 {

+ 1 - 2
src/Masuit.MyBlogs.Core/Views/Error/Index.cshtml

@@ -1,9 +1,8 @@
 @inject IWebHostEnvironment HostEnvironment
 @using System.IO
-@using AngleSharp.Network
 @using Masuit.Tools
-@using Masuit.Tools.Win32
 @using Microsoft.AspNetCore.Hosting
+@using Microsoft.Net.Http.Headers
 
 @{
     Layout = null;

+ 1 - 2
src/Masuit.MyBlogs.Core/Views/Links/Index.cshtml

@@ -1,5 +1,4 @@
-@using AngleSharp.Network.Default
-@using Masuit.MyBlogs.Core.Models.DTO
+@using Masuit.MyBlogs.Core.Models.DTO
 @model IList<Masuit.MyBlogs.Core.Models.DTO.LinksDto>
 
 @{

+ 1 - 2
src/Masuit.MyBlogs.Core/Views/Links/Index_Admin.cshtml

@@ -1,5 +1,4 @@
-@using AngleSharp.Network.Default
-@using Masuit.MyBlogs.Core.Models.DTO
+@using Masuit.MyBlogs.Core.Models.DTO
 @model IList<Masuit.MyBlogs.Core.Models.DTO.LinksDto>
 
 @{