using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.Map.Dtos; using DS.WMS.Core.Map.Interface; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.Controllers { /// /// 箱型映射信息 模块 /// public class MappingCtnController : ApiController { private readonly IMappingCtnService _invokeService; /// /// 构造函数 /// /// public MappingCtnController(IMappingCtnService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetMappingCtnList")] public DataResult> GetMappingCtnList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditMappingCtn")] public DataResult EditMappingCtn([FromBody] MappingCtnReq req) { var res = _invokeService.EditMappingCtn(req); return res; } /// /// 详情 /// /// Id /// [HttpGet] [Route("GetMappingCtnInfo")] public DataResult GetMappingCtnInfo([FromQuery] string id) { var res = _invokeService.GetMappingCtnInfo(id); return res; } /// /// 删除 /// /// Id /// [HttpPost] [Route("DelMappingCtn")] public DataResult DelMappingCtn([FromBody] IdModel req) { var res = _invokeService.DelMappingCtn(req); return res; } /// ///批量删除 /// /// Id /// [HttpPost] [Route("BatchDelMappingCtn")] public DataResult BatchDelMappingCtn([FromBody] IdModel req) { var res = _invokeService.BatchDelMappingCtn(req); return res; } } }