From cabdf0eaf953315ad50a03b4da343a71db23c119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Thu, 13 Apr 2023 08:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8using?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Admin.WebApi/Controllers/BaseController.cs | 4 ---- .../Controllers/CommonController.cs | 7 ------- .../Controllers/System/ArticleController.cs | 5 +---- .../System/CodeGeneratorController.cs | 5 ----- .../System/CommonLangController.cs | 2 -- .../System/SysDictTypeController.cs | 2 -- .../Controllers/System/SysPostController.cs | 19 +++++++++---------- .../Controllers/System/TasksController.cs | 6 ++---- .../Controllers/System/TasksLogController.cs | 16 ++++++++-------- 9 files changed, 20 insertions(+), 46 deletions(-) diff --git a/ZR.Admin.WebApi/Controllers/BaseController.cs b/ZR.Admin.WebApi/Controllers/BaseController.cs index fe5f613..62aed77 100644 --- a/ZR.Admin.WebApi/Controllers/BaseController.cs +++ b/ZR.Admin.WebApi/Controllers/BaseController.cs @@ -1,13 +1,9 @@ using Infrastructure; using Infrastructure.Model; -using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using MiniExcelLibs; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -using System; -using System.Collections.Generic; -using System.IO; using System.Web; using ff = System.IO; diff --git a/ZR.Admin.WebApi/Controllers/CommonController.cs b/ZR.Admin.WebApi/Controllers/CommonController.cs index 21c1cf2..a6f6272 100644 --- a/ZR.Admin.WebApi/Controllers/CommonController.cs +++ b/ZR.Admin.WebApi/Controllers/CommonController.cs @@ -3,20 +3,13 @@ using Infrastructure.Attribute; using Infrastructure.Enums; using Infrastructure.Extensions; using Infrastructure.Model; -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using Newtonsoft.Json; -using System; -using System.IO; -using System.Linq; -using System.Threading.Tasks; using ZR.Admin.WebApi.Extensions; using ZR.Admin.WebApi.Filters; using ZR.Common; using ZR.Model.System; -using ZR.Model.System.Dto; using ZR.Service.System.IService; namespace ZR.Admin.WebApi.Controllers diff --git a/ZR.Admin.WebApi/Controllers/System/ArticleController.cs b/ZR.Admin.WebApi/Controllers/System/ArticleController.cs index 66f75f3..26496de 100644 --- a/ZR.Admin.WebApi/Controllers/System/ArticleController.cs +++ b/ZR.Admin.WebApi/Controllers/System/ArticleController.cs @@ -1,5 +1,4 @@ -using Aliyun.OSS; -using Infrastructure; +using Infrastructure; using Infrastructure.Attribute; using Infrastructure.Enums; using Infrastructure.Model; @@ -7,10 +6,8 @@ using Mapster; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using SqlSugar; -using System; using ZR.Admin.WebApi.Extensions; using ZR.Admin.WebApi.Filters; -using ZR.Common; using ZR.Model.System; using ZR.Model.System.Dto; using ZR.Service.System.IService; diff --git a/ZR.Admin.WebApi/Controllers/System/CodeGeneratorController.cs b/ZR.Admin.WebApi/Controllers/System/CodeGeneratorController.cs index 0206607..005fbaa 100644 --- a/ZR.Admin.WebApi/Controllers/System/CodeGeneratorController.cs +++ b/ZR.Admin.WebApi/Controllers/System/CodeGeneratorController.cs @@ -3,13 +3,8 @@ using Infrastructure.Attribute; using Infrastructure.Enums; using Infrastructure.Extensions; using Mapster; -using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; -using Newtonsoft.Json; using SqlSugar; -using System; -using System.Collections.Generic; -using System.IO; using ZR.Admin.WebApi.Extensions; using ZR.Admin.WebApi.Filters; using ZR.CodeGenerator; diff --git a/ZR.Admin.WebApi/Controllers/System/CommonLangController.cs b/ZR.Admin.WebApi/Controllers/System/CommonLangController.cs index 6b03095..eedd9f1 100644 --- a/ZR.Admin.WebApi/Controllers/System/CommonLangController.cs +++ b/ZR.Admin.WebApi/Controllers/System/CommonLangController.cs @@ -6,12 +6,10 @@ using Infrastructure.Model; using Mapster; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using System.Collections.Generic; using ZR.Admin.WebApi.Filters; using ZR.Common; using ZR.Model; using ZR.Model.Dto; -using ZR.Model.Models; using ZR.Service.System.IService; namespace ZR.Admin.WebApi.Controllers diff --git a/ZR.Admin.WebApi/Controllers/System/SysDictTypeController.cs b/ZR.Admin.WebApi/Controllers/System/SysDictTypeController.cs index f2e199f..bdfc22f 100644 --- a/ZR.Admin.WebApi/Controllers/System/SysDictTypeController.cs +++ b/ZR.Admin.WebApi/Controllers/System/SysDictTypeController.cs @@ -3,8 +3,6 @@ using Infrastructure.Enums; using Infrastructure.Model; using Mapster; using Microsoft.AspNetCore.Mvc; -using Org.BouncyCastle.Crypto; -using System; using ZR.Admin.WebApi.Extensions; using ZR.Admin.WebApi.Filters; using ZR.Common; diff --git a/ZR.Admin.WebApi/Controllers/System/SysPostController.cs b/ZR.Admin.WebApi/Controllers/System/SysPostController.cs index 5527c81..49f1b1a 100644 --- a/ZR.Admin.WebApi/Controllers/System/SysPostController.cs +++ b/ZR.Admin.WebApi/Controllers/System/SysPostController.cs @@ -1,16 +1,15 @@ -using Microsoft.AspNetCore.Mvc; -using SqlSugar; -using System.Collections.Generic; -using ZR.Admin.WebApi.Filters; -using ZR.Model; -using ZR.Model.System; -using Infrastructure.Extensions; +using Infrastructure; using Infrastructure.Attribute; using Infrastructure.Enums; -using Infrastructure; -using ZR.Service.System.IService; -using ZR.Common; +using Infrastructure.Extensions; +using Microsoft.AspNetCore.Mvc; +using SqlSugar; using ZR.Admin.WebApi.Extensions; +using ZR.Admin.WebApi.Filters; +using ZR.Common; +using ZR.Model; +using ZR.Model.System; +using ZR.Service.System.IService; namespace ZR.Admin.WebApi.Controllers.System { diff --git a/ZR.Admin.WebApi/Controllers/System/TasksController.cs b/ZR.Admin.WebApi/Controllers/System/TasksController.cs index 1fb0e05..cfa90bf 100644 --- a/ZR.Admin.WebApi/Controllers/System/TasksController.cs +++ b/ZR.Admin.WebApi/Controllers/System/TasksController.cs @@ -1,20 +1,18 @@ using Infrastructure; using Infrastructure.Attribute; using Infrastructure.Enums; +using Infrastructure.Extensions; using Mapster; using Microsoft.AspNetCore.Mvc; using Quartz; using SqlSugar; -using System; -using System.Threading.Tasks; using ZR.Admin.WebApi.Extensions; using ZR.Admin.WebApi.Filters; using ZR.Model; -using ZR.Model.System.Dto; using ZR.Model.System; +using ZR.Model.System.Dto; using ZR.Service.System.IService; using ZR.Tasks; -using Infrastructure.Extensions; namespace ZR.Admin.WebApi.Controllers { diff --git a/ZR.Admin.WebApi/Controllers/System/TasksLogController.cs b/ZR.Admin.WebApi/Controllers/System/TasksLogController.cs index 7deddda..aff3178 100644 --- a/ZR.Admin.WebApi/Controllers/System/TasksLogController.cs +++ b/ZR.Admin.WebApi/Controllers/System/TasksLogController.cs @@ -1,15 +1,15 @@ -using Microsoft.AspNetCore.Mvc; -using SqlSugar; -using ZR.Model; -using ZR.Model.System.Dto; -using ZR.Model.System; -using Infrastructure.Extensions; +using Infrastructure; using Infrastructure.Attribute; +using Infrastructure.Enums; +using Infrastructure.Extensions; +using Microsoft.AspNetCore.Mvc; +using SqlSugar; using ZR.Admin.WebApi.Filters; using ZR.Common; -using Infrastructure.Enums; +using ZR.Model; +using ZR.Model.System; +using ZR.Model.System.Dto; using ZR.Service.System.IService; -using Infrastructure; namespace ZR.Admin.WebApi.Controllers.System {