From e286264a833fe52862690ad06d72ad04df5c77dc Mon Sep 17 00:00:00 2001
From: huawei <huawei@2214094776>
Date: 星期三, 17 十二月 2025 16:06:20 +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