From c020f31a67fc5aa5644511bddff075f7ecc85234 Mon Sep 17 00:00:00 2001 From: qinchulong <qinchulong@hnkhzn.com> Date: 星期二, 27 五月 2025 15:35:27 +0800 Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/HuaYiZhongHeng/ZhongHeLiTiKu --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/LocationInfoController.cs | 61 ++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/LocationInfoController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/LocationInfoController.cs" new file mode 100644 index 0000000..2d0a5ee --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/LocationInfoController.cs" @@ -0,0 +1,61 @@ +锘縰sing Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using System.Collections.Generic; +using WIDESEA_Core; +using WIDESEA_Core.BaseController; +using WIDESEA_Core.Enums; +using WIDESEA_DTO.Basic; +using WIDESEA_IBasicRepository; +using WIDESEA_IBasicService; +using WIDESEA_Model.Models; + +namespace WIDESEA_WMSServer.Controllers.Basic +{ + [Route("api/LocationInfo")] + [ApiController] + public class LocationInfoController : ApiBaseController<ILocationInfoService, Dt_LocationInfo> + { + private readonly ILocationInfoRepository _repository; + public LocationInfoController(ILocationInfoService service, ILocationInfoRepository repository) : base(service) + { + _repository = repository; + } + + [HttpPost, Route("InitializationLocation")] + public WebResponseContent InitializationLocation([FromBody] InitializationLocationDTO initializationLocationDTO) + { + return Service.InitializationLocation(initializationLocationDTO); + } + + [HttpPost, Route("AdjacentDepthLocation"), AllowAnonymous] + public Dt_LocationInfo AdjacentDepthLocation(string locationCode) + { + return Service.AdjacentDepthLocation(locationCode); + } + + [HttpPost, Route("GetAllLocationGroups"), AllowAnonymous] + public List<LocationGroupDTO> GetAllLocationGroups(string roadway) + { + List<LocationGroupDTO> locations = _repository.GetAllLocationGroups(roadway); + return locations; + } + + [HttpPost, Route("GetLocationGroups"), AllowAnonymous] + public List<LocationGroupDTO> GetLocationGroups(string roadway, LocationStatusEnum locationAStatus, LocationStatusEnum locationBStatus) + { + List<LocationGroupDTO> locations = _repository.GetLocationGroups(roadway, locationAStatus, locationBStatus); + return locations; + } + [HttpPost, Route("LocationEnableStatus")] + public WebResponseContent LocationEnableStatus([FromBody] int[] keys) + { + return Service.LocationEnableStatus(keys); ; + } + [HttpPost, Route("LocationDisableStatus")] + public WebResponseContent LocationDisableStatus([FromBody] int[] keys) + { + return Service.LocationDisableStatus(keys); ; + } + } +} -- Gitblit v1.9.3