using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Code.Interface;
using DS.WMS.Core.Sys.Dtos;
using DS.WMS.Core.Sys.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
///
/// 对账模板 模块
///
public class CodeCheckBillTemplateController : ApiController
{
private readonly ICodeCheckBillTemplateService _invokeService;
///
/// 构造函数
///
///
public CodeCheckBillTemplateController(ICodeCheckBillTemplateService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetCheckBillTemplateList")]
public DataResult> GetCheckBillTemplateList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditCheckBillTemplate")]
public DataResult EditCheckBillTemplate([FromBody] CheckBillTemplateReq req)
{
var res = _invokeService.EditCheckBillTemplate(req);
return res;
}
///
/// 详情
///
/// Id
///
[HttpGet]
[Route("GetCheckBillTemplateInfo")]
public DataResult GetCheckBillTemplateInfo([FromQuery] string id)
{
var res = _invokeService.GetCheckBillTemplateInfo(id);
return res;
}
///
/// 对账模板批量删除
///
/// 主表Ids
///
[HttpPost]
[Route("BatchDelCheckBillTemplate")]
public DataResult BatchDelCheckBillTemplate([FromBody] IdModel req)
{
var res = _invokeService.BatchDelCheckBillTemplate(req);
return res;
}
///
/// 对账模板费用批量删除
///
/// 主表Id及费用明细Ids
///
[HttpPost]
[Route("BatchDelCheckBillTemplateFee")]
public DataResult BatchDelCheckBillTemplateFee([FromBody] IdModel req)
{
var res = _invokeService.BatchDelCheckBillTemplateFee(req);
return res;
}
///
/// 对账模板排序批量删除
///
/// 主表Id及排序明细Ids
///
[HttpPost]
[Route("BatchDelCheckBillTemplateSort")]
public DataResult BatchDelCheckBillTemplateSort([FromBody] IdModel req)
{
var res = _invokeService.BatchDelCheckBillTemplateSort(req);
return res;
}
}