using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.ContainerManagement.Info.Dtos;
using DS.WMS.ContainerManagement.Info.Entity;
using DS.WMS.ContainerManagement.Info.Interface;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Op.Dtos;
using DS.WMS.Core.Op.Interface;
using DS.WMS.Core.Op.View;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.ContainerManagementApi.Controllers;
///
/// 箱管_月结账单
///
public class CM_CustFeeDuiController : ApiController
{
private readonly ICM_CustFeeDuiService _invokeService;
///
/// 构造函数
///
///
public CM_CustFeeDuiController(ICM_CustFeeDuiService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetCM_CustFeeDuiList")]
public async Task>> GetCM_CustFeeDuiList([FromBody] PageRequest request)
{
var res = await _invokeService.GetListByPage(request);
return res;
}
///
/// 直接编辑
///
///
[HttpPost]
[Route("EditCM_CustFeeDui")]
public Task EditCM_CustFeeDui([FromBody] CM_CustFeeDuiReq model)
{
var res = _invokeService.EditCM_CustFeeDui(model);
return res;
}
///
/// 查看详情
///
///
///
[HttpGet]
[Route("GetCM_CustFeeDui")]
public DataResult GetCM_CustFeeDui([FromQuery] string id)
{
var res = _invokeService.GetCM_CustFeeDui(id);
return res;
}
///
/// 删除月结账单
///
/// 月结账单id
///
[HttpPost, Route("DeleteCM_CustFeeDui")]
public async Task DeleteCM_CustFeeDuiAsync([FromBody] IdModel model)
{
if (!ModelState.IsValid)
return DataResult.Failed(ModelState.GetErrorMessage(), MultiLanguageConst.IllegalRequest);
return await _invokeService.DeleteCM_CustFeeDuiAsync(model.Ids);
}
///
///
///
///
///
//[HttpPost, Route("CM_CustFeeDui_AddCtn")]
//public async Task CM_CustFeeDui_AddCtn([FromBody] CM_CustFeeDuiReq model,[FromBody] IdModel Idmodel)
//{
// if (!ModelState.IsValid)
// return DataResult.Failed(ModelState.GetErrorMessage(), MultiLanguageConst.IllegalRequest);
// return await _invokeService.CM_CustFeeDui_AddCtn(model,Idmodel.Ids);
//}
}