From 7d772840712a8dd5be125ba70060a1bf1bf322d6 Mon Sep 17 00:00:00 2001
From: kyy <3283105747@qq.com>
Date: 星期三, 22 十月 2025 15:48:38 +0800
Subject: [PATCH] 采购入库优化
---
Startup.cs | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Startup.cs b/Startup.cs
index caf1a01..7507a84 100644
--- a/Startup.cs
+++ b/Startup.cs
@@ -1,5 +1,6 @@
锘縰sing System.Reflection;
using Microsoft.OpenApi.Models;
+using NewPdaSqlServer.entity.Base;
using NewPdaSqlServer.util;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
@@ -26,6 +27,12 @@
{
services.AddControllers();
+ // 娉ㄥ唽 HttpContextAccessor
+ services.AddHttpContextAccessor();
+
+ // 娉ㄥ唽 RequestInfo 涓� Scoped 鏈嶅姟
+ services.AddScoped<RequestInfo>();
+
// 璇诲彇 绯荤粺 璁剧疆骞舵敞鍏ュ埌鏈嶅姟涓�
services.Configure<AppSettings>(
Configuration.GetSection("AppSettings"));
--
Gitblit v1.9.3