hutongqing
2024-08-23 e98b07c84a2a496da895ef6b523b29ccc75e004d
WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/RouterController.cs
@@ -1,13 +1,14 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_IBasicInfoService;
using WIDESEAWCS_Model.Models;
namespace WIDESEAWCS_Server.Controllers.BasicInfo
{
    [Route("api/router")]
    [Route("api/Router")]
    [ApiController]
    public class RouterController : ApiBaseController<IRouterService, Dt_Router>
    {
@@ -15,10 +16,22 @@
        {
        }
        [HttpPost, Route("queryRoutes"), AllowAnonymous]
        [HttpPost, Route("QueryRoutes"), AllowAnonymous]
        public List<Dt_Router> QueryRoutes(string startPosi, string endPosi)
        {
            return Service.QueryNextRoutes(startPosi, endPosi);
        }
        [HttpPost, Route("QueryAllPositions"), AllowAnonymous]
        public List<string> QueryAllPositions(string deviceCode)
        {
            return Service.QueryAllPositions(deviceCode);
        }
        [HttpPost, Route("GetAllWholeRouters"), AllowAnonymous]
        public WebResponseContent GetAllWholeRouters()
        {
            return Service.GetAllWholeRouters();
        }
    }
}