From 2f42eb72901f3f18aee8e51295af3280dca3d839 Mon Sep 17 00:00:00 2001
From: kyy <3283105747@qq.com>
Date: 星期三, 26 十一月 2025 09:37:44 +0800
Subject: [PATCH] 采购入库返回值修正
---
Startup.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Startup.cs b/Startup.cs
index caf1a01..1f040a6 100644
--- a/Startup.cs
+++ b/Startup.cs
@@ -30,6 +30,10 @@
services.Configure<AppSettings>(
Configuration.GetSection("AppSettings"));
+ // 娣诲姞鏈嶅姟娉ㄥ唽锛岃姹傚ご淇℃伅浼犻�掋��
+ services.AddHttpContextAccessor();
+ services.AddScoped<RequestInfo>();
+
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1",
@@ -38,7 +42,7 @@
var xmlFile =
$"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
- //c.IncludeXmlComments(xmlPath, true);
+ c.IncludeXmlComments(xmlPath, true);
});
//閰嶇疆JSON.NET
--
Gitblit v1.9.3