From d9d2bdd887dfe41eb718a61dbf103c3745eecc97 Mon Sep 17 00:00:00 2001
From: tanglong <842690096@qq.com>
Date: Fri, 15 Aug 2025 13:32:18 +0800
Subject: [PATCH] d
---
.../Controllers/LargeScreenController.cs | 8 ++++++++
Server/YD_XinWei/Startup.cs | 16 +++++++++-------
.../net6.0/EndpointInfo/YD_XinWei.Api.json | 4 ++++
.../net6.0/YD_XinWei.Api.AssemblyInfo.cs | 2 +-
.../YD_XinWei.Api.AssemblyInfoInputs.cache | 2 +-
Server/YD_XinWei/obj/Debug/net6.0/apphost.exe | Bin 151040 -> 151040 bytes
Server/YD_XinWei/test.cs | 16 ++++++++++++++++
7 files changed, 39 insertions(+), 9 deletions(-)
create mode 100644 Server/YD_XinWei/test.cs
diff --git a/Server/YD_XinWei/Controllers/LargeScreenController.cs b/Server/YD_XinWei/Controllers/LargeScreenController.cs
index 500632a..0777ad5 100644
--- a/Server/YD_XinWei/Controllers/LargeScreenController.cs
+++ b/Server/YD_XinWei/Controllers/LargeScreenController.cs
@@ -9,11 +9,19 @@ using YD_XinWei.Commons.Dto.Open;
namespace YD_XinWei.Api.Controllers
{
+ ///
+ /// 大屏数据
+ ///
[ApiVersion("1.0")]
[AllowAnonymous]
public class LargeScreenController : ControllerBase
{
private readonly ILargeScreenService _largeScreenService;
+
+ ///
+ /// 构造函数
+ ///
+ ///
public LargeScreenController(ILargeScreenService largeScreenService)
{
_largeScreenService = largeScreenService;
diff --git a/Server/YD_XinWei/Startup.cs b/Server/YD_XinWei/Startup.cs
index 1d2e826..f34fb1e 100644
--- a/Server/YD_XinWei/Startup.cs
+++ b/Server/YD_XinWei/Startup.cs
@@ -282,16 +282,17 @@ namespace YD_XinWei.Api
// // staticFile.Context.Response.StatusCode;
// }
//});
+
//配置HttpContext
app.UseStaticHttpContext();
- //app.UseSwagger();
- //app.UseSwaggerUI(c =>
- //{
- // //2个下拉框选项 选择对应的文档
- // c.SwaggerEndpoint("/swagger/v1/swagger.json", "YD_XinWei.Api");
- // c.RoutePrefix = "";
- //});
+ app.UseSwagger();
+ app.UseSwaggerUI(c =>
+ {
+ //2个下拉框选项 选择对应的文档
+ c.SwaggerEndpoint("/swagger/v1/swagger.json", "YD_XinWei.Api");
+ c.RoutePrefix = "";
+ });
app.UseRouting();
app.UseCors();
@@ -300,6 +301,7 @@ namespace YD_XinWei.Api
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
+
//配置SignalR
//if (AppSetting.UseSignalR)
//{
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/EndpointInfo/YD_XinWei.Api.json b/Server/YD_XinWei/obj/Debug/net6.0/EndpointInfo/YD_XinWei.Api.json
index 687475e..895f846 100644
--- a/Server/YD_XinWei/obj/Debug/net6.0/EndpointInfo/YD_XinWei.Api.json
+++ b/Server/YD_XinWei/obj/Debug/net6.0/EndpointInfo/YD_XinWei.Api.json
@@ -3412,6 +3412,10 @@
}
],
"tags": [
+ {
+ "name": "LargeScreen",
+ "description": "大屏数据"
+ },
{
"name": "XinWei",
"description": "芯未"
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfo.cs b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfo.cs
index a3101b8..fcc36fb 100644
--- a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfo.cs
+++ b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfo.cs
@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("YD_XinWei.Api")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+a02788708d17c249598086966005229c44c74ffc")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+742999591b36b697f866a6392a6844b409afaa82")]
[assembly: System.Reflection.AssemblyProductAttribute("YD_XinWei.Api")]
[assembly: System.Reflection.AssemblyTitleAttribute("YD_XinWei.Api")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfoInputs.cache b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfoInputs.cache
index e91cad0..d2efacf 100644
--- a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfoInputs.cache
+++ b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfoInputs.cache
@@ -1 +1 @@
-93668722b7fb624125cdbbebd817283445fb3f99bcefa434051a1db85667509a
+0fcde1d812b5c762dec6601502ab55e02892f5f21df0ac17af0d64fd788f3f65
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/apphost.exe b/Server/YD_XinWei/obj/Debug/net6.0/apphost.exe
index b72cce15b3ece144cbd460a97284356de9cf6aab..73af01461d9174572a3c9062ae3a573d1435379c 100644
GIT binary patch
delta 99
zcmZpe!`T2tEsR^347~l#8B7?A7%aii6i6B}BrzB>m;p&MAkUm3jllxQGGj;tVq>6)
g5twBG)MWxxW5Qqn6iWoEN(4d+2BYou-b{^50Esvd_y7O^
delta 99
zcmZpe!`T2tEsR^347~jl84MVV7|a