f8794bbb63
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.
22 lines
1.3 KiB
C#
22 lines
1.3 KiB
C#
using CMSMicroservice.Protobuf.Protos.UserPackagePurchase;
|
|
using CMSMicroservice.WebApi.Common.Services;
|
|
using CMSMicroservice.Application.UserPackagePurchaseCQ.Queries.GetAllUserPackagePurchaseByFilter;
|
|
using CMSMicroservice.Application.UserPackagePurchaseCQ.Queries.GetUserPackagePurchaseSummary;
|
|
|
|
namespace CMSMicroservice.WebApi.Services;
|
|
|
|
public class UserPackagePurchaseService : UserPackagePurchaseContract.UserPackagePurchaseContractBase
|
|
{
|
|
private readonly IDispatchRequestToCQRS _dispatch;
|
|
|
|
public UserPackagePurchaseService(IDispatchRequestToCQRS dispatch) => _dispatch = dispatch;
|
|
|
|
public override Task<GetAllUserPackagePurchaseByFilterResponse> GetAllUserPackagePurchaseByFilter(
|
|
GetAllUserPackagePurchaseByFilterRequest request, ServerCallContext context) =>
|
|
_dispatch.Handle<GetAllUserPackagePurchaseByFilterRequest, GetAllUserPackagePurchaseByFilterQuery, GetAllUserPackagePurchaseByFilterResponse>(request, context);
|
|
|
|
public override Task<GetUserPackagePurchaseSummaryResponse> GetUserPackagePurchaseSummary(
|
|
GetUserPackagePurchaseSummaryRequest request, ServerCallContext context) =>
|
|
_dispatch.Handle<GetUserPackagePurchaseSummaryRequest, GetUserPackagePurchaseSummaryQuery, GetUserPackagePurchaseSummaryResponse>(request, context);
|
|
}
|