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/AreaInfoController.cs | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 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/AreaInfoController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/AreaInfoController.cs" new file mode 100644 index 0000000..abd7296 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Basic/AreaInfoController.cs" @@ -0,0 +1,48 @@ +锘縰sing Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using Swashbuckle.AspNetCore.Annotations; +using WIDESEA_Core; +using WIDESEA_Core.BaseController; +using WIDESEA_Core.BaseRepository; +using WIDESEA_Core.Helper; +using WIDESEA_DTO; +using WIDESEA_DTO.Basic; +using WIDESEA_IBasicService; +using WIDESEA_Model.Models; + +namespace WIDESEA_WMSServer.Controllers.Basic +{ + [Route("api/AreaInfo")] + [ApiController] + public class AreaInfoController : ApiBaseController<IAreaInfoService, Dt_AreaInfo> + { + public AreaInfoController(IAreaInfoService service) : base(service) + { + } + + [HttpPost, Route("AreaEnableStatus")] + public WebResponseContent AreaEnableStatus([FromBody] int[] keys) + { + return Service.AreaEnableStatus(keys); + } + + [HttpPost, Route("AreaDisableStatus")] + public WebResponseContent AreaDisableStatus([FromBody] int[] keys) + { + return Service.AreaDisableStatus(keys); + } + + [HttpGet(), Route("AreaEnableStatus")] + public WebResponseContent AreaEnableStatus([FromBody] int key) + { + return Service.AreaEnableStatus(key); + } + + [HttpGet, Route("AreaDisableStatus")] + public WebResponseContent AreaDisableStatus([FromBody] int key) + { + return Service.AreaDisableStatus(key); + } + } +} -- Gitblit v1.9.3