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 CodeLanesController : ApiController
{
private readonly ICodeLanesService _invokeService;
///
/// 构造函数
///
///
public CodeLanesController(ICodeLanesService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetCodeLanesList")]
public DataResult> GetCodeLanesList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditCodeLanes")]
public DataResult EditCodeLanes([FromBody] CodeLanesReq model)
{
var res = _invokeService.EditCodeLanes(model);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetCodeLanesInfo")]
public DataResult GetCodeLanesInfo([FromQuery] string id)
{
var res = _invokeService.GetCodeLanesInfo(id);
return res;
}
}