diff --git a/src/BackOffice.BFF.Application/BackOffice.BFF.Application.csproj b/src/BackOffice.BFF.Application/BackOffice.BFF.Application.csproj index aae3c96..44bdb85 100644 --- a/src/BackOffice.BFF.Application/BackOffice.BFF.Application.csproj +++ b/src/BackOffice.BFF.Application/BackOffice.BFF.Application.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/BackOffice.BFF.Application/ProductsCQ/Commands/CreateNewProducts/CreateNewProductsCommand.cs b/src/BackOffice.BFF.Application/ProductsCQ/Commands/CreateNewProducts/CreateNewProductsCommand.cs index cb5e0e4..93d4db0 100644 --- a/src/BackOffice.BFF.Application/ProductsCQ/Commands/CreateNewProducts/CreateNewProductsCommand.cs +++ b/src/BackOffice.BFF.Application/ProductsCQ/Commands/CreateNewProducts/CreateNewProductsCommand.cs @@ -10,6 +10,8 @@ public record CreateNewProductsCommand : IRequest public int Rate { get; init; } public ImageFileModel ImageFile { get; init; } public ImageFileModel ThumbnailFile { get; init; } + // لیست شناسه دسته‌بندی‌های محصول + public ICollection? CategoryIds { get; init; } } public class ImageFileModel @@ -18,4 +20,3 @@ public class ImageFileModel public string FileName { get; set; } public string Mime { get; set; } } - diff --git a/src/BackOffice.BFF.Application/ProductsCQ/Commands/UpdateProducts/UpdateProductsCommand.cs b/src/BackOffice.BFF.Application/ProductsCQ/Commands/UpdateProducts/UpdateProductsCommand.cs index cf84af6..420bf4e 100644 --- a/src/BackOffice.BFF.Application/ProductsCQ/Commands/UpdateProducts/UpdateProductsCommand.cs +++ b/src/BackOffice.BFF.Application/ProductsCQ/Commands/UpdateProducts/UpdateProductsCommand.cs @@ -13,6 +13,8 @@ public record UpdateProductsCommand : IRequest public string ThumbnailPath { get; init; } public ImageFileModel ImageFile { get; init; } public ImageFileModel ThumbnailFile { get; init; } + // لیست شناسه دسته‌بندی‌های محصول + public ICollection? CategoryIds { get; init; } } public class ImageFileModel @@ -21,4 +23,3 @@ public class ImageFileModel public string FileName { get; set; } public string Mime { get; set; } } - diff --git a/src/BackOffice.BFF.Application/ProductsCQ/Queries/GetAllProductsByFilter/GetAllProductsByFilterResponseDto.cs b/src/BackOffice.BFF.Application/ProductsCQ/Queries/GetAllProductsByFilter/GetAllProductsByFilterResponseDto.cs index dc0318e..53fe33e 100644 --- a/src/BackOffice.BFF.Application/ProductsCQ/Queries/GetAllProductsByFilter/GetAllProductsByFilterResponseDto.cs +++ b/src/BackOffice.BFF.Application/ProductsCQ/Queries/GetAllProductsByFilter/GetAllProductsByFilterResponseDto.cs @@ -20,5 +20,6 @@ public class GetAllProductsByFilterResponseModel public int SaleCount { get; set; } public int ViewCount { get; set; } public int RemainingCount { get; set; } + // لیست شناسه دسته‌بندی‌های محصول + public List CategoryIds { get; set; } = new(); } - diff --git a/src/BackOffice.BFF.Application/ProductsCQ/Queries/GetProducts/GetProductsResponseDto.cs b/src/BackOffice.BFF.Application/ProductsCQ/Queries/GetProducts/GetProductsResponseDto.cs index 86fc3c2..a2bd05c 100644 --- a/src/BackOffice.BFF.Application/ProductsCQ/Queries/GetProducts/GetProductsResponseDto.cs +++ b/src/BackOffice.BFF.Application/ProductsCQ/Queries/GetProducts/GetProductsResponseDto.cs @@ -14,5 +14,6 @@ public class GetProductsResponseDto public int SaleCount { get; set; } public int ViewCount { get; set; } public int RemainingCount { get; set; } + // لیست شناسه دسته‌بندی‌های محصول + public List CategoryIds { get; set; } = new(); } - diff --git a/src/BackOffice.BFF.Domain/BackOffice.BFF.Domain.csproj b/src/BackOffice.BFF.Domain/BackOffice.BFF.Domain.csproj index 94da898..9edf096 100644 --- a/src/BackOffice.BFF.Domain/BackOffice.BFF.Domain.csproj +++ b/src/BackOffice.BFF.Domain/BackOffice.BFF.Domain.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/Protobufs/BackOffice.BFF.Category.Protobuf/BackOffice.BFF.Category.Protobuf.csproj b/src/Protobufs/BackOffice.BFF.Category.Protobuf/BackOffice.BFF.Category.Protobuf.csproj index 0e80d4c..4850a37 100644 --- a/src/Protobufs/BackOffice.BFF.Category.Protobuf/BackOffice.BFF.Category.Protobuf.csproj +++ b/src/Protobufs/BackOffice.BFF.Category.Protobuf/BackOffice.BFF.Category.Protobuf.csproj @@ -4,7 +4,7 @@ net9.0 enable enable - 0.0.1 + 0.0.3 None False False diff --git a/src/Protobufs/BackOffice.BFF.Products.Protobuf/BackOffice.BFF.Products.Protobuf.csproj b/src/Protobufs/BackOffice.BFF.Products.Protobuf/BackOffice.BFF.Products.Protobuf.csproj index dbc3c48..ed0432a 100644 --- a/src/Protobufs/BackOffice.BFF.Products.Protobuf/BackOffice.BFF.Products.Protobuf.csproj +++ b/src/Protobufs/BackOffice.BFF.Products.Protobuf/BackOffice.BFF.Products.Protobuf.csproj @@ -4,7 +4,7 @@ net9.0 enable enable - 0.0.4 + 0.0.6 None False False diff --git a/src/Protobufs/BackOffice.BFF.Products.Protobuf/Protos/products.proto b/src/Protobufs/BackOffice.BFF.Products.Protobuf/Protos/products.proto index ce771ed..ab74618 100644 --- a/src/Protobufs/BackOffice.BFF.Products.Protobuf/Protos/products.proto +++ b/src/Protobufs/BackOffice.BFF.Products.Protobuf/Protos/products.proto @@ -106,6 +106,8 @@ message CreateNewProductsRequest int32 rate = 7; ImageFileModel image_file = 8; ImageFileModel thumbnail_file = 9; + // لیست شناسه دسته‌بندی‌های محصول + repeated int64 category_ids = 10; } message CreateNewProductsResponse @@ -127,6 +129,8 @@ message UpdateProductsRequest string thumbnail_path = 10; ImageFileModel image_file = 11; ImageFileModel thumbnail_file = 12; + // لیست شناسه دسته‌بندی‌های محصول + repeated int64 category_ids = 13; } message DeleteProductsRequest @@ -154,6 +158,8 @@ message GetProductsResponse int32 sale_count = 11; int32 view_count = 12; int32 remaining_count = 13; + // لیست شناسه دسته‌بندی‌های محصول + repeated int64 category_ids = 14; } message GetAllProductsByFilterRequest @@ -196,6 +202,8 @@ message GetAllProductsByFilterResponseModel int32 sale_count = 11; int32 view_count = 12; int32 remaining_count = 13; + // لیست شناسه دسته‌بندی‌های محصول + repeated int64 category_ids = 14; } message PaginationState