From 2aef482fa7431fb47eef94081ff23ec220f89820 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期五, 24 一月 2025 09:10:31 +0800 Subject: [PATCH] 1 --- WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/RouterController.cs | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/RouterController.cs b/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/RouterController.cs index 9b3923b..fabcc24 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/RouterController.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/RouterController.cs @@ -14,10 +14,10 @@ using WIDESEAWCS_Core.Enums; using WIDESEAWCS_Core.Helper; using WIDESEAWCS_DTO.BasicInfo; -using WIDESEAWCS_IBasicInfoService; using WIDESEAWCS_Model.Models; using WIDESEAWCS_QuartzJob.Models; using WIDESEAWCS_QuartzJob.Repository; +using WIDESEAWCS_QuartzJob.Service; namespace WIDESEAWCS_Server.Controllers.BasicInfo { @@ -51,7 +51,7 @@ WebResponseContent content = new(); try { - List<dynamic> dynamics = Service.GetAllWholeRouters(); + List<object> dynamics = Service.GetAllWholeRouters(); content = WebResponseContent.Instance.OK(data: dynamics); } @@ -109,5 +109,11 @@ { return Service.AddRouters(routersAddDTOs, routerType); } + + [HttpPost, Route("QueryNextRoutesByType"), AllowAnonymous] + public List<Dt_Router> QueryNextRoutes(string startPosi, string endPosi, int routeType) + { + return Service.QueryNextRoutes(startPosi, endPosi, routeType); + } } } -- Gitblit v1.9.3