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.
18 lines
632 B
C#
18 lines
632 B
C#
namespace CMSMicroservice.Application.ClubMembershipCQ.Queries.GetClubMembershipHistory;
|
|
|
|
public record GetClubMembershipHistoryQuery : IRequest<GetClubMembershipHistoryResponseDto>
|
|
{
|
|
public PaginationState? PaginationState { get; init; }
|
|
public string? SortBy { get; init; }
|
|
public GetClubMembershipHistoryFilter? Filter { get; init; }
|
|
}
|
|
|
|
public class GetClubMembershipHistoryFilter
|
|
{
|
|
public long? UserId { get; set; }
|
|
public long? ClubMembershipId { get; set; }
|
|
public ClubMembershipAction? Action { get; set; }
|
|
public DateTime? CreatedFrom { get; set; }
|
|
public DateTime? CreatedTo { get; set; }
|
|
}
|