Add response DTOs for withdrawal and club activation commands

This commit is contained in:
masoodafar-web
2025-11-30 23:39:31 +03:30
parent 698c044be6
commit bfeb6456af
56 changed files with 3043 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
using CMSMicroservice.Protobuf.Protos.Commission;
namespace BackOffice.BFF.Application.CommissionCQ.Queries.GetWeeklyPool;
public class GetWeeklyPoolQueryHandler : IRequestHandler<GetWeeklyPoolQuery, GetWeeklyPoolResponseDto>
{
private readonly IApplicationContractContext _context;
public GetWeeklyPoolQueryHandler(IApplicationContractContext context)
{
_context = context;
}
public async Task<GetWeeklyPoolResponseDto> Handle(GetWeeklyPoolQuery request, CancellationToken cancellationToken)
{
var response = await _context.Commissions.GetWeeklyCommissionPoolAsync(
request.Adapt<GetWeeklyCommissionPoolRequest>(),
cancellationToken: cancellationToken);
return response.Adapt<GetWeeklyPoolResponseDto>();
}
}