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 CodeLanesController : ApiController { private readonly ICodeLanesService _invokeService; /// /// 构造函数 /// /// public CodeLanesController(ICodeLanesService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetCodeLanesList")] public DataResult> GetCodeLanesList([FromBody] PageRequest request) { var res = _invokeService.GetClientListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCodeLanes")] public DataResult EditCodeLanes([FromBody] CodeLanesReq model) { var res = _invokeService.EditClientCodeLanes(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetCodeLanesInfo")] public DataResult GetCodeLanesInfo([FromQuery] string id) { var res = _invokeService.GetClientCodeLanesInfo(id); return res; } /// /// 获取航线信息列表-基础库 /// /// /// [HttpPost] [Route("GetBasicsCodeLanesList")] public DataResult> GetBasicsCodeLanesList([FromBody] PageRequest request) { var res = _invokeService.GetCodeLanesList(request); return res; } /// /// 导入航线信息类型-基础库 /// /// /// [HttpPost] [Route("ImportCodeLanes")] public DataResult ImportCodeLanes([FromBody] IdModel req) { var res = _invokeService.ImportCodeLanes(req); return res; } /// /// 获取当前租户已有的航线信息 /// /// [HttpGet] [Route("GetExistCodeLanesList")] public DataResult> GetExistCodeLanesList() { var res = _invokeService.GetExistCodeLanesList(); return res; } }