feat(club-membership): enhance club membership history queries and responses
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 17m54s
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 17m54s
- Added filtering capabilities to GetClubMembershipHistoryQuery, allowing optional filters for UserId, ClubMembershipId, Action, and date range. - Updated GetClubMembershipHistoryQueryHandler to utilize the new filter structure. - Enhanced GetAllClubMembershipsQueryHandler to include LastPackage details in the response. - Introduced new properties in GetAllClubMembershipsResponseModel for PackageId and PackageName. - Updated Protobuf definitions to reflect changes in club membership history queries and responses. - Refactored mapping configurations to accommodate new DTOs and filters.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using CMSMicroservice.Protobuf.Protos.PaymentTransaction;
|
||||
using CMSMicroservice.WebApi.Common.Services;
|
||||
using CMSMicroservice.Application.PaymentTransactionCQ.Queries.GetAllPaymentTransactionByFilter;
|
||||
using CMSMicroservice.Application.PaymentTransactionCQ.Queries.GetPaymentTransactionSummary;
|
||||
|
||||
namespace CMSMicroservice.WebApi.Services;
|
||||
|
||||
public class PaymentTransactionService : PaymentTransactionContract.PaymentTransactionContractBase
|
||||
{
|
||||
private readonly IDispatchRequestToCQRS _dispatch;
|
||||
|
||||
public PaymentTransactionService(IDispatchRequestToCQRS dispatch) => _dispatch = dispatch;
|
||||
|
||||
public override Task<GetAllPaymentTransactionByFilterResponse> GetAllPaymentTransactionByFilter(
|
||||
GetAllPaymentTransactionByFilterRequest request, ServerCallContext context) =>
|
||||
_dispatch.Handle<GetAllPaymentTransactionByFilterRequest, GetAllPaymentTransactionByFilterQuery, GetAllPaymentTransactionByFilterResponse>(request, context);
|
||||
|
||||
public override Task<GetPaymentTransactionSummaryResponse> GetPaymentTransactionSummary(
|
||||
GetPaymentTransactionSummaryRequest request, ServerCallContext context) =>
|
||||
_dispatch.Handle<GetPaymentTransactionSummaryRequest, GetPaymentTransactionSummaryQuery, GetPaymentTransactionSummaryResponse>(request, context);
|
||||
}
|
||||
Reference in New Issue
Block a user