- Added UpdateDiscountProductCommandValidator for validating discount product updates. - Created GetDiscountProductByIdQuery and its handler for retrieving discount product details by ID. - Implemented GetDiscountProductsQuery and handler for fetching a list of discount products with filtering options. - Developed AddToCartCommand and handler for adding products to the shopping cart. - Implemented ClearCartCommand and handler for clearing the shopping cart. - Created RemoveFromCartCommand and handler for removing items from the cart. - Added UpdateCartItemCountCommand and handler for updating the quantity of items in the cart. - Developed GetUserCartQuery and handler for retrieving the user's shopping cart details. - Implemented Product Tag functionalities including assigning tags to products, creating, updating, and deleting tags. - Added queries for fetching all tags and products by tag.
17 lines
559 B
C#
17 lines
559 B
C#
namespace BackOffice.BFF.Application.DiscountOrderCQ.Queries.GetUserOrders;
|
|
|
|
public record GetUserOrdersQuery : IRequest<GetUserOrdersResponseDto>
|
|
{
|
|
/// <summary>شناسه کاربر</summary>
|
|
public long UserId { get; init; }
|
|
|
|
/// <summary>فیلتر براساس وضعیت سفارش</summary>
|
|
public int? Status { get; init; }
|
|
|
|
/// <summary>شماره صفحه</summary>
|
|
public int PageNumber { get; init; } = 1;
|
|
|
|
/// <summary>تعداد در هر صفحه</summary>
|
|
public int PageSize { get; init; } = 20;
|
|
}
|