From 695571c6009ecbc12e7d4a4fb147df7967a1260e Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期一, 07 七月 2025 20:21:19 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MeiRuiAn/HuaiAn
---
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SwaggerSetup.cs | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SwaggerSetup.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SwaggerSetup.cs"
index 2785bea..264c52b 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SwaggerSetup.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SwaggerSetup.cs"
@@ -27,7 +27,7 @@
{
if (services == null) throw new ArgumentNullException(nameof(services));
- var basePath = AppContext.BaseDirectory;
+ var basePath = AppDomain.CurrentDomain.BaseDirectory;
//var basePath2 = Microsoft.DotNet.PlatformAbstractions.ApplicationEnvironment.ApplicationBasePath;
var ApiName = AppSettings.Get(new string[] { "ApiName" });
@@ -50,14 +50,15 @@
c.UseInlineDefinitionsForEnums();
try
{
- //杩欎釜灏辨槸鍒氬垰閰嶇疆鐨剎ml鏂囦欢鍚�
- //var xmlPath = Path.Combine(basePath, "Blog.Core.xml");
+ var xmlPath = Path.Combine(basePath, "WIDESEA_WMSServer.xml");
//榛樿鐨勭浜屼釜鍙傛暟鏄痜alse锛岃繖涓槸controller鐨勬敞閲婏紝璁板緱淇敼
- //c.IncludeXmlComments(xmlPath, true);
+ c.IncludeXmlComments(xmlPath, true);
- //杩欎釜灏辨槸Model灞傜殑xml鏂囦欢鍚�
- //var xmlModelPath = Path.Combine(basePath, "Blog.Core.Model.xml");
- //c.IncludeXmlComments(xmlModelPath);
+ var xmlModelPath = Path.Combine(basePath, "WIDESEA_Model.xml");
+ c.IncludeXmlComments(xmlModelPath);
+
+ var xmlDTOPath = Path.Combine(basePath, "WIDESEA_DTO.xml");
+ c.IncludeXmlComments(xmlDTOPath);
}
catch (Exception ex)
{
--
Gitblit v1.9.3