diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs index 9342573a..fbfd8caa 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs @@ -1,6 +1,7 @@ using Magicodes.ExporterAndImporter.Core; using Magicodes.ExporterAndImporter.Csv; using Magicodes.ExporterAndImporter.Excel; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using SettleAccount.Domain.BQ; using Shouldly; @@ -19,6 +20,8 @@ using Win.Sfs.Shared.RepositoryBase; namespace Win.Sfs.SettleAccount.Entities.BQ { + [AllowAnonymous] + [Route("api/settleaccount/[controller]/[action]")] public class INVOICE_SERVICE:ApplicationService { private readonly INormalEfCoreRepository _repository; @@ -59,6 +62,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ var dtos = ObjectMapper.Map, List>(entitys); return new PagedResultDto(totalCount, dtos); } + [HttpPost] public virtual async Task DetailQueryAsync(INVOICE_GRP_REQ_DTO input) { @@ -76,6 +80,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ } + [HttpPost] public virtual async Task ExportAsync(INVOICE_GRP_REQ_DTO input) { IExporter _csv = new CsvExporter(); @@ -109,7 +114,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ ); return _fileName; } - + [HttpPost] public virtual async Task RejectAsync(INVOICE_GRP_REQ_DTO input) { return string.Empty;