- Introduced `networkmembership.proto` with RPC methods for retrieving user network tree, statistics, and position. - Implemented HTTP annotations for gRPC transcoding in the service methods. - Added support for Google API annotations in `annotations.proto` and `http.proto`. - Created `ConfigureServices.cs` to register FluentValidation for the Protobuf services. - Updated project file to include necessary dependencies for gRPC and Protobuf.
19 lines
520 B
C#
19 lines
520 B
C#
namespace FrontOffice.BFF.Application.DiscountShopCQ.Commands.RemoveFromDiscountCart;
|
|
|
|
/// <summary>
|
|
/// حذف محصول از سبد خرید تخفیفی
|
|
/// </summary>
|
|
public record RemoveFromDiscountCartCommand : IRequest<RemoveFromDiscountCartResponseDto>
|
|
{
|
|
/// <summary>
|
|
/// شناسه محصول
|
|
/// </summary>
|
|
public long ProductId { get; init; }
|
|
}
|
|
|
|
public class RemoveFromDiscountCartResponseDto
|
|
{
|
|
public bool Success { get; set; }
|
|
public string Message { get; set; } = string.Empty;
|
|
}
|