refactor(mappings): update filter mappings for club membership and payment transaction profiles
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user