Files
BackOffice.BFF/src/BackOffice.BFF.Application/PublicMessageCQ/Queries/GetAllMessages/GetAllMessagesQuery.cs
masoodafar-web 4b6f8187e5 feat: Implement User Package Status and User Order Management features
- Added GetUserPackageStatus functionality with mapping and service implementation.
- Introduced UserOrder service methods for updating order status, applying discounts, and calculating order PV.
- Created Protobuf definitions for public messages and user orders, including necessary request and response messages.
- Implemented mapping profiles for package and user order related queries and commands.
- Developed query handlers and validators for new commands and queries in the application layer.
- Established PublicMessage service for handling public messages with appropriate gRPC endpoints.
2025-12-04 03:43:28 +03:30

20 lines
610 B
C#

// GetAllMessages - Admin view
using MediatR;
namespace BackOffice.BFF.Application.PublicMessageCQ.Queries.GetAllMessages;
public record GetAllMessagesQuery : IRequest<object> // TODO: define response
{
public int PageNumber { get; init; }
public int PageSize { get; init; }
}
public class GetAllMessagesQueryHandler : IRequestHandler<GetAllMessagesQuery, object>
{
public async Task<object> Handle(GetAllMessagesQuery request, CancellationToken cancellationToken)
{
// TODO: gRPC call to CMS PublicMessageContract.GetAllMessages
throw new NotImplementedException();
}
}