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 CodeVoynoController : ApiController
{
private readonly ICodeVoynoService _invokeService;
///
/// 构造函数
///
///
public CodeVoynoController(ICodeVoynoService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetCodeVoynoList")]
public DataResult> GetCodeVoynoList([FromBody] PageRequest request)
{
var res = _invokeService.GetClientListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditCodeVoyno")]
public DataResult EditCodeVoyno([FromBody] CodeVoynoReq model)
{
var res = _invokeService.EditClientCodeVoyno(model);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetCodeVoynoInfo")]
public DataResult GetCodeVoynoInfo([FromQuery] string id)
{
var res = _invokeService.GetClientCodeVoynoInfo(id);
return res;
}
///
/// 获取航次信息列表-基础库
///
///
///
[HttpPost]
[Route("GetBasicsCodeVoynoList")]
public DataResult> GetBasicsCodeVoynoList([FromBody] PageRequest request)
{
var res = _invokeService.GetCodeVoynoList(request);
return res;
}
///
/// 导入航次信息类型-基础库
///
///
///
[HttpPost]
[Route("ImportCodeVoyno")]
public DataResult ImportCodeVoyno([FromBody] IdModel req)
{
var res = _invokeService.ImportCodeVoyno(req);
return res;
}
///
/// 获取当前租户已有的航次信息
///
///
[HttpGet]
[Route("GetExistCodeVoynoList")]
public DataResult> GetExistCodeVoynoList()
{
var res = _invokeService.GetExistCodeVoynoList();
return res;
}
}