From 966d1fe6077c885db064fcea98bb48cbccb464d6 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期一, 14 十月 2024 17:23:02 +0800 Subject: [PATCH] WCS --- 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dt_LocationController.cs | 29 +++++++++++++++++++++++++---- 1 files changed, 25 insertions(+), 4 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dt_LocationController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dt_LocationController.cs" index eb6a7f6..1d10e11 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dt_LocationController.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dt_LocationController.cs" @@ -1,19 +1,40 @@ 锘縰sing Microsoft.AspNetCore.Mvc; using WIDESEA_BusinessServices; using WIDESEA_Core.BaseController; -using WIDESEA_IBusinessServices; using WIDESEA_Model.Models; -namespace WIDESEA_WMSServer.Controllers.System +namespace WIDESEA_WMSServer.Controllers { [Route("api/Dt_LocationInfo")] [ApiController] - public class Dt_LocationInfoController : ApiBaseController<IDt_LocationInfoService, Dt_LocationInfo> + public class Dt_LocationInfoController : ApiBaseController<IDt_LocationService, Dt_LocationInfo> { private readonly IHttpContextAccessor _httpContextAccessor; - public Dt_LocationInfoController(IDt_LocationInfoService service, IHttpContextAccessor httpContextAccessor) : base(service) + private readonly IDt_LocationService _locationService; + + public Dt_LocationInfoController(IDt_LocationService service, IHttpContextAccessor httpContextAccessor) : base(service) { _httpContextAccessor = httpContextAccessor; + _locationService = service; + } + [HttpPost, Route("LocationEnable")] + public WebResponseContent LocationEnable([FromBody] SaveModel saveModel) + { + return _locationService.LocationEnable(saveModel); + } + + /// <summary> + /// 鍒涘缓鍘熷璐т綅鏁版嵁 锛堥殢渚垮啓浜嗕竴涓弻娣辫揣浣嶇殑锛� + /// </summary> + /// <param name="x">琛�</param> + /// <param name="y">鍒�</param> + /// <param name="z">灞�</param> + /// <param name="locType">璐т綅绫诲瀷锛�1銆佸崟娣�,2銆佸弻娣憋級</param> + /// <returns></returns> + [HttpPost, Route("CreateLocation"),AllowAnonymous] + public WebResponseContent CreateLocation(int x,int y,int z, int locType) + { + return _locationService.CreateLocation(x, y, z, locType); } } -- Gitblit v1.9.3