feat: implement commission calculation strategy with ORM and SP options
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 1m43s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 1m43s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using CMSMicroservice.Application.NetworkMembershipCQ.Queries.GetNetworkTree;
|
||||
using CMSMicroservice.Application.NetworkMembershipCQ.Queries.GetUserNetworkPosition;
|
||||
using CMSMicroservice.Application.NetworkMembershipCQ.Queries.GetNetworkStatistics;
|
||||
using CMSMicroservice.Protobuf.Protos.NetworkMembership;
|
||||
using CMSMicroservice.Domain.Enums;
|
||||
|
||||
@@ -9,6 +10,10 @@ public class NetworkMembershipProfile : IRegister
|
||||
{
|
||||
void IRegister.Register(TypeAdapterConfig config)
|
||||
{
|
||||
// GetNetworkStatisticsRequest -> GetNetworkStatisticsQuery
|
||||
config.NewConfig<GetNetworkStatisticsRequest, GetNetworkStatisticsQuery>()
|
||||
.MapWith(src => new GetNetworkStatisticsQuery());
|
||||
|
||||
// Request mapping
|
||||
config.NewConfig<GetNetworkTreeRequest, GetNetworkTreeQuery>()
|
||||
.Map(dest => dest.UserId, src => src.UserId)
|
||||
|
||||
Reference in New Issue
Block a user