feat: update protobuf versions and enhance club membership and commission queries
Build and Deploy / build (push) Successful in 1m41s

This commit is contained in:
masoodafar-web
2025-12-20 03:16:36 +03:30
parent 6b72e88780
commit f234af49e0
55 changed files with 352 additions and 150 deletions
@@ -16,18 +16,26 @@ public class GetAllConfigurationsQueryHandler : IRequestHandler<GetAllConfigurat
{
var grpcRequest = new GetAllConfigurationsRequest
{
PageIndex = request.PageIndex,
PageSize = request.PageSize
PaginationState = new CMSMicroservice.Protobuf.Protos.PaginationState
{
PageNumber = request.PageIndex,
PageSize = request.PageSize
}
};
if (request.Scope.HasValue)
if (request.Scope.HasValue || request.IsActive.HasValue)
{
grpcRequest.Scope = request.Scope.Value;
}
grpcRequest.Filter = new GetAllConfigurationsFilter();
if (request.Scope.HasValue)
{
grpcRequest.Filter.Scope = request.Scope.Value;
}
if (request.IsActive.HasValue)
{
grpcRequest.IsActive = request.IsActive.Value;
if (request.IsActive.HasValue)
{
grpcRequest.Filter.IsActive = request.IsActive.Value;
}
}
var response = await _context.Configurations.GetAllConfigurationsAsync(grpcRequest, cancellationToken: cancellationToken);