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.UserPackagePurchaseCQ.Queries.GetUserPackagePu
using CMSMicroservice.Protobuf.Protos.UserPackagePurchase;
using Google.Protobuf.WellKnownTypes;
using Mapster;
using AppFilter = CMSMicroservice.Application.UserPackagePurchaseCQ.Queries.GetAllUserPackagePurchaseByFilter.GetAllUserPackagePurchaseByFilterFilter;
using ProtoFilter = CMSMicroservice.Protobuf.Protos.UserPackagePurchase.GetAllUserPackagePurchaseByFilterFilter;
namespace CMSMicroservice.WebApi.Common.Mappings;
@@ -50,10 +52,10 @@ public class UserPackagePurchaseProfile : IRegister
});
}
private static GetAllUserPackagePurchaseByFilterFilter? MapFilter(GetAllUserPackagePurchaseByFilterFilter? src)
private static AppFilter? MapFilter(ProtoFilter? src)
{
if (src == null) return null;
return new GetAllUserPackagePurchaseByFilterFilter
return new AppFilter
{
UserId = src.HasUserId ? src.UserId : null,
PackageId = src.HasPackageId ? src.PackageId : null,