diff --git a/README.md b/README.md index a8dcb92..333c011 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,6 @@ CLI : dotnet add package IGeekFan.AspNetCore.Knife4jUI 2.In the ConfigureServices method of Startup.cs, register the Swagger generator, defining one or more Swagger documents. ``` -using System.Reflection; using Microsoft.AspNetCore.Mvc.Controllers using Microsoft.OpenApi.Models; using Swashbuckle.AspNetCore.SwaggerGen; diff --git a/samples/SwaggerUI_IndexStream_Knife4jUI_Demo/Startup.cs b/samples/SwaggerUI_IndexStream_Knife4jUI_Demo/Startup.cs index 71aaa2b..29a20b0 100644 --- a/samples/SwaggerUI_IndexStream_Knife4jUI_Demo/Startup.cs +++ b/samples/SwaggerUI_IndexStream_Knife4jUI_Demo/Startup.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.IO; -using System.Reflection; using System.Text.Json; using System.Text.Json.Serialization; using Microsoft.AspNetCore.Builder; @@ -12,7 +11,6 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.Hosting; using Microsoft.OpenApi.Models; -using Swashbuckle.AspNetCore.SwaggerGen; using Swashbuckle.AspNetCore.SwaggerUI; namespace Knife4jUIDemo diff --git a/test/Basic/Startup.cs b/test/Basic/Startup.cs index 0bf3a27..c3ffe5a 100644 --- a/test/Basic/Startup.cs +++ b/test/Basic/Startup.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Globalization; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; @@ -10,12 +9,6 @@ using Microsoft.OpenApi.Models; using Basic.Swagger; using Microsoft.AspNetCore.Localization; using System.IO; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Options; -using System.Text.Json; -using System.Text.Json.Serialization; -using Swashbuckle.AspNetCore.SwaggerGen; -using System.Reflection; using IGeekFan.AspNetCore.Knife4jUI; using Microsoft.AspNetCore.Mvc.Controllers; diff --git a/test/Knife4jUIDemo/Startup.cs b/test/Knife4jUIDemo/Startup.cs index c28c38e..56b1d39 100644 --- a/test/Knife4jUIDemo/Startup.cs +++ b/test/Knife4jUIDemo/Startup.cs @@ -1,20 +1,11 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Threading.Tasks; using IGeekFan.AspNetCore.Knife4jUI; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.HttpsPolicy; -using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; using Microsoft.OpenApi.Models; -using Swashbuckle.AspNetCore.SwaggerGen; namespace Knife4jUIDemo {