From b51cfdec1dde066a1afbec0fa816347031ca6d25 Mon Sep 17 00:00:00 2001
From: zhanghonglin <zhanghonglin@hnkhzn.com>
Date: 星期三, 23 七月 2025 14:32:56 +0800
Subject: [PATCH] 前端
---
项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/WMSPart/LocationInfoController.cs | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/WMSPart/LocationInfoController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/WMSPart/LocationInfoController.cs"
index d999269..c8e36dd 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/WMSPart/LocationInfoController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/WMSPart/LocationInfoController.cs"
@@ -6,10 +6,11 @@
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_Core.Enums;
+using WIDESEAWCS_DTO.BasicInfo;
using WIDESEAWCS_IWMSPart;
using WIDESEAWCS_Model.Models;
-namespace WIDESEAWCS_WMSServer.Controllers.WMSPart
+namespace WIDESEAWCS_Server.Controllers.WMSPart
{
/// <summary>
/// 璐т綅
@@ -23,5 +24,30 @@
{
}
+ [HttpPost, Route("GetLocationConfigs"), AllowAnonymous]
+ public WebResponseContent GetLocationConfigs(int layer)
+ {
+ DateTime s = DateTime.Now;
+ WebResponseContent content = Service.GetLocationConfigs(layer);
+ double d = (DateTime.Now - s).TotalMilliseconds;
+ return content;
+ }
+ [HttpPost, Route("GetLocationLayer"), AllowAnonymous]
+ public WebResponseContent GetLocationLayer()
+ {
+ return Service.GetLocationLayer();
+ }
+
+ [HttpPost, Route("InitializationLocation"), AllowAnonymous]
+ public WebResponseContent InitializationLocation([FromBody] InitializationLocationDTO initializationLocationDTO)
+ {
+ return Service.InitializationLocation(initializationLocationDTO);
+ }
+
+ [HttpPost, Route("getlocation"), AllowAnonymous]
+ public WebResponseContent getlocation()
+ {
+ return Service.getlocation();
+ }
}
}
--
Gitblit v1.9.3