using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Application.Dtos; using DS.WMS.Core.Settlement.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.FeeApi.Controllers { /// /// 发票结算API /// public class InvoiceSettlementController : ApiController { readonly IInvoiceSettlementService _service; /// /// 初始化 /// /// public InvoiceSettlementController(IInvoiceSettlementService service) { _service = service; } /// /// 获取待结算的发票申请列表 /// /// /// [HttpPost, Route("GetInvoiceList")] public async Task>> GetInvoiceListAsync(PageRequest request) { return await _service.GetInvoiceListAsync(request); } /// /// 获取发票申请费用明细 /// /// /// [HttpPost, Route("GetInvoiceDetails")] public async Task>> GetInvoiceDetailsAsync(IdModel idModel) { return await _service.GetInvoiceDetailsAsync(idModel.Ids); } } }