using DS.Module.Core; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.Sys.Dtos; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.AdminApi.Controllers; /// /// 集装箱信息服务 /// public class CodeCtnController : ApiController { private readonly ICodeCtnService _invokeService; /// /// 构造函数 /// /// public CodeCtnController(ICodeCtnService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetCodeCtnList")] public DataResult> GetCodeCtnList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCodeCtn")] public DataResult EditCodeCtn([FromBody] CodeCtnReq model) { var res = _invokeService.EditCodeCtn(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetCodeCtnInfo")] public DataResult GetCodeCtnInfo([FromQuery] string id) { var res = _invokeService.GetCodeCtnInfo(id); return res; } }