From d0f01f571918ae942349068776fa7fb70f3ab5cd Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期三, 28 八月 2024 16:20:18 +0800 Subject: [PATCH] 更新设备信息表从表导入问题 --- WIDESEAWCS_Server/WIDESEAWCS_Core/Extensions/SwaggerSetup.cs | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Core/Extensions/SwaggerSetup.cs b/WIDESEAWCS_Server/WIDESEAWCS_Core/Extensions/SwaggerSetup.cs index d80ac85..54f61d9 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_Core/Extensions/SwaggerSetup.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_Core/Extensions/SwaggerSetup.cs @@ -20,8 +20,6 @@ /// </summary> public static class SwaggerSetup { - - /// <summary> /// Swagger /// </summary> @@ -45,22 +43,20 @@ Version = version, Title = $"{ApiName} 鎺ュ彛鏂囨。鈥斺�攞RuntimeInformation.FrameworkDescription}", Description = $"{ApiName} HTTP API " + version, - //Contact = new OpenApiContact { Name = ApiName, Email = "Blog.Core@xxx.com", Url = new Uri("https://neters.club") }, - //License = new OpenApiLicense { Name = ApiName + " 瀹樻柟鏂囨。", Url = new Uri("http://apk.neters.club/.doc/") } }); - //c.OrderActionsBy(o => o.RelativePath); + c.OrderActionsBy(o => o.RelativePath); }); c.UseInlineDefinitionsForEnums(); try { //杩欎釜灏辨槸鍒氬垰閰嶇疆鐨剎ml鏂囦欢鍚� - //var xmlPath = Path.Combine(basePath, "Blog.Core.xml"); + //var xmlPath = Path.Combine(basePath, "WIDESEAWCS_Server.xml"); //榛樿鐨勭浜屼釜鍙傛暟鏄痜alse锛岃繖涓槸controller鐨勬敞閲婏紝璁板緱淇敼 //c.IncludeXmlComments(xmlPath, true); //杩欎釜灏辨槸Model灞傜殑xml鏂囦欢鍚� - //var xmlModelPath = Path.Combine(basePath, "Blog.Core.Model.xml"); + //var xmlModelPath = Path.Combine(basePath, "WIDESEAWCS_Server.Model.xml"); //c.IncludeXmlComments(xmlModelPath); } catch (Exception ex) @@ -73,7 +69,7 @@ c.OperationFilter<AppendAuthorizeToSummaryOperationFilter>(); // 鍦╤eader涓坊鍔爐oken锛屼紶閫掑埌鍚庡彴 - //c.OperationFilter<SecurityRequirementsOperationFilter>(); + c.OperationFilter<SecurityRequirementsOperationFilter>(); c.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme { -- Gitblit v1.9.3