using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.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.GetClientListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCodePort")] public DataResult EditCodePort([FromBody] CodePortReq model) { var res = _invokeService.EditClientCodePort(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetCodePortInfo")] public DataResult GetCodePortInfo([FromQuery] string id) { var res = _invokeService.GetClientCodePortInfo(id); return res; } /// /// 获取港口信息列表-基础库 /// /// /// [HttpPost] [Route("GetBasicsCodePortList")] public DataResult> GetBasicsCodePortList([FromBody] PageRequest request) { var res = _invokeService.GetCodePortList(request); return res; } /// /// 导入港口信息类型-基础库 /// /// /// [HttpPost] [Route("ImportCodePort")] public DataResult ImportCodePort([FromBody] IdModel req) { var res = _invokeService.ImportCodePort(req); return res; } /// /// 获取当前租户已有的港口信息 /// /// [HttpGet] [Route("GetExistCodePortList")] public DataResult> GetExistCodePortList() { var res = _invokeService.GetExistCodePortList(); return res; } }