auto.bus_api/Server/Services/IReportService.cs
cuqmbr e9af067dfa feat: add imperative resource-based authorization
I decided not to make authorization requirements and handlers for each and every resource because the validation logic is pretty similar
2023-05-22 15:27:11 +03:00

19 lines
726 B
C#

using Microsoft.AspNetCore.Mvc;
using SharedModels.Responses;
namespace Server.Services;
public interface IReportService
{
Task<(bool IsSucceed, IActionResult? actionResult, Stream ticketPdf)>
GetTicket(int ticketGroupId);
Task<(bool isSucceed, IActionResult? actionResult, Stream reportPdf)>
GetCompanyReportPdf(int? companyId, DateTime fromDate, DateTime toDate);
Task<(bool isSucceed, IActionResult? actionResult, StatisticsResponse statistics)>
GetCompanyReportRaw(int? companyId, DateTime fromDate, DateTime toDate);
Task<(bool isSucceed, IActionResult? actionResult, StatisticsResponse statistics)>
GetAdminReportRaw(DateTime fromDate, DateTime toDate);
}