From 974588da0169fd8b990bf39a15ecb3acbdf49c92 Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Fri, 21 Nov 2025 04:50:04 +0330 Subject: [PATCH] Merge branch 'newmain' --- .../GetAllUserCartResponseDto.cs | 28 ++++++------------- .../Protos/shopingcart.proto | 23 ++++++--------- 2 files changed, 18 insertions(+), 33 deletions(-) diff --git a/src/FrontOffice.BFF.Application/ShopingCartCQ/Queries/GetAllUserCart/GetAllUserCartResponseDto.cs b/src/FrontOffice.BFF.Application/ShopingCartCQ/Queries/GetAllUserCart/GetAllUserCartResponseDto.cs index 44c4300..f24107f 100644 --- a/src/FrontOffice.BFF.Application/ShopingCartCQ/Queries/GetAllUserCart/GetAllUserCartResponseDto.cs +++ b/src/FrontOffice.BFF.Application/ShopingCartCQ/Queries/GetAllUserCart/GetAllUserCartResponseDto.cs @@ -4,34 +4,24 @@ public class GetAllUserCartResponseDto //متادیتا public MetaData MetaData { get; set; } //مدل خروجی - public List? Models { get; set; } + public List? Models { get; set; } -}public class GetAllProductsByFilterResponseModel +}public class GetAllUserCartResponseModel { // public long Id { get; set; } // - public string Title { get; set; } + public string ProductTitle { get; set; } // - public string Description { get; set; } + public string ProductShortInfomation { get; set; } // - public string ShortInfomation { get; set; } + public long ProductPrice { get; set; } // - public string FullInformation { get; set; } + public int ProductDiscount { get; set; } // - public long Price { get; set; } + public string ProductThumbnailPath { get; set; } // - public int Discount { get; set; } + public int Count { get; set; } // - public int Rate { get; set; } - // - public string ImagePath { get; set; } - // - public string ThumbnailPath { get; set; } - // - public int SaleCount { get; set; } - // - public int ViewCount { get; set; } - // - public int RemainingCount { get; set; } + public DateTime Created { get; set; } } diff --git a/src/Protobufs/FrontOffice.BFF.ShopingCart.Protobuf/Protos/shopingcart.proto b/src/Protobufs/FrontOffice.BFF.ShopingCart.Protobuf/Protos/shopingcart.proto index 8b2e354..14310bc 100644 --- a/src/Protobufs/FrontOffice.BFF.ShopingCart.Protobuf/Protos/shopingcart.proto +++ b/src/Protobufs/FrontOffice.BFF.ShopingCart.Protobuf/Protos/shopingcart.proto @@ -39,23 +39,18 @@ message AddNewUserCartRequest message GetAllUserCartResponse { MetaData meta_data = 1; - repeated GetAllProductsByFilterResponseModel models = 2; + repeated GetAllUserCartResponseModel models = 2; } -message GetAllProductsByFilterResponseModel +message GetAllUserCartResponseModel { int64 id = 1; - string title = 2; - string description = 3; - string short_infomation = 4; - string full_information = 5; - int64 price = 6; - int32 discount = 7; - int32 rate = 8; - string image_path = 9; - string thumbnail_path = 10; - int32 sale_count = 11; - int32 view_count = 12; - int32 remaining_count = 13; + string product_title = 2; + string product_short_infomation = 3; + int64 product_price = 4; + int32 product_discount = 5; + string product_thumbnail_path = 6; + int32 count = 7; + google.protobuf.Timestamp created = 8; } message UpdateUserCartRequest {