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 MappingYardController : ApiController { private readonly IMappingYardService _invokeService; /// /// 构造函数 /// /// public MappingYardController(IMappingYardService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetMappingYardList")] public DataResult> GetMappingYardList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditMappingYard")] public DataResult EditMappingYard([FromBody] MappingYardReq req) { var res = _invokeService.EditMappingYard(req); return res; } /// /// 详情 /// /// Id /// [HttpGet] [Route("GetMappingYardInfo")] public DataResult GetMappingYardInfo([FromQuery] string id) { var res = _invokeService.GetMappingYardInfo(id); return res; } /// /// 删除 /// /// Id /// [HttpPost] [Route("DelMappingYard")] public DataResult DelMappingYard([FromBody] IdModel req) { var res = _invokeService.DelMappingYard(req); return res; } /// ///批量删除 /// /// Id /// [HttpPost] [Route("BatchDelMappingYard")] public DataResult BatchDelMappingYard([FromBody] IdModel req) { var res = _invokeService.BatchDelMappingYard(req); return res; } } }