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 CodeCarrierController : ApiController
{
private readonly ICodeCarrierService _invokeService;
///
/// 构造函数
///
///
public CodeCarrierController(ICodeCarrierService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetCodeCarrierList")]
public DataResult> GetCodeCarrierList([FromBody] PageRequest request)
{
var res = _invokeService.GetClientListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditCodeCarrier")]
public DataResult EditCodeCarrier([FromBody] CodeCarrierReq model)
{
var res = _invokeService.EditClientCodeCarrier(model);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetCodeCarrierInfo")]
public DataResult GetCodeCarrierInfo([FromQuery] string id)
{
var res = _invokeService.GetClientCodeCarrierInfo(id);
return res;
}
///
/// 批量删除
///
/// 主表Ids
///
[HttpPost]
[Route("BatchDelCodeCarrier")]
public DataResult BatchDelCodeCarrier([FromBody] IdModel req)
{
var res = _invokeService.BatchDelCodeCarrier(req);
return res;
}
}