refactor(mappings): update filter mappings for club membership and payment transaction profiles
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled

- Renamed filter types in ClubMembershipCycleHistoryProfile, ClubMembershipCycleProfile, PaymentTransactionProfile, UserPackagePurchaseProfile to improve clarity and consistency.
- Adjusted mapping methods to utilize new filter type aliases for better readability and maintainability.
- Ensured all relevant profiles are aligned with the updated filter structures.
This commit is contained in:
masoodafar-web
2026-06-22 22:36:33 +03:30
parent f8794bbb63
commit db20d95b43
5 changed files with 18 additions and 9 deletions
@@ -3,6 +3,8 @@ using CMSMicroservice.Application.PaymentTransactionCQ.Queries.GetPaymentTransac
using CMSMicroservice.Protobuf.Protos.PaymentTransaction;
using Google.Protobuf.WellKnownTypes;
using Mapster;
using AppFilter = CMSMicroservice.Application.PaymentTransactionCQ.Queries.GetAllPaymentTransactionByFilter.GetAllPaymentTransactionByFilterFilter;
using ProtoFilter = CMSMicroservice.Protobuf.Protos.PaymentTransaction.GetAllPaymentTransactionByFilterFilter;
namespace CMSMicroservice.WebApi.Common.Mappings;
@@ -47,10 +49,10 @@ public class PaymentTransactionProfile : IRegister
Models = { src.Models?.Select(MapModel) ?? [] }
};
private static GetAllPaymentTransactionByFilterFilter? MapFilter(GetAllPaymentTransactionByFilterFilter? src)
private static AppFilter? MapFilter(ProtoFilter? src)
{
if (src == null) return null;
return new GetAllPaymentTransactionByFilterFilter
return new AppFilter
{
UserId = src.HasUserId ? src.UserId : null,
Mobile = src.HasMobile ? src.Mobile : null,