using DS.Module.Core; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.System.Dtos; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.AdminApi.Controllers; /// /// 港口信息服务 /// public class CodePortController : ApiController { private readonly ICodePortService _invokeService; /// /// 构造函数 /// /// public CodePortController(ICodePortService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetCodePortList")] public DataResult> GetCodePortList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCodePort")] public DataResult EditCodePort([FromBody] CodePortReq model) { var res = _invokeService.EditCodePort(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetCodePortInfo")] public DataResult GetCodePortInfo([FromQuery] string id) { var res = _invokeService.GetCodePortInfo(id); return res; } }