- 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.
20 lines
610 B
C#
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();
|
|
}
|
|
}
|