Add category IDs support to product DTOs and protobuf
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="11.2.2" />
|
||||
<PackageReference Include="Foursat.CMSMicroservice.Protobuf" Version="0.0.128" />
|
||||
<PackageReference Include="Foursat.CMSMicroservice.Protobuf" Version="0.0.129" />
|
||||
<PackageReference Include="Mapster" Version="7.3.0" />
|
||||
<PackageReference Include="Mapster.DependencyInjection" Version="1.0.0" />
|
||||
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="11.0.0" />
|
||||
|
||||
+2
-1
@@ -10,6 +10,8 @@ public record CreateNewProductsCommand : IRequest<CreateNewProductsResponseDto>
|
||||
public int Rate { get; init; }
|
||||
public ImageFileModel ImageFile { get; init; }
|
||||
public ImageFileModel ThumbnailFile { get; init; }
|
||||
// لیست شناسه دستهبندیهای محصول
|
||||
public ICollection<long>? CategoryIds { get; init; }
|
||||
}
|
||||
|
||||
public class ImageFileModel
|
||||
@@ -18,4 +20,3 @@ public class ImageFileModel
|
||||
public string FileName { get; set; }
|
||||
public string Mime { get; set; }
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -13,6 +13,8 @@ public record UpdateProductsCommand : IRequest<Unit>
|
||||
public string ThumbnailPath { get; init; }
|
||||
public ImageFileModel ImageFile { get; init; }
|
||||
public ImageFileModel ThumbnailFile { get; init; }
|
||||
// لیست شناسه دستهبندیهای محصول
|
||||
public ICollection<long>? CategoryIds { get; init; }
|
||||
}
|
||||
|
||||
public class ImageFileModel
|
||||
@@ -21,4 +23,3 @@ public class ImageFileModel
|
||||
public string FileName { get; set; }
|
||||
public string Mime { get; set; }
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -20,5 +20,6 @@ public class GetAllProductsByFilterResponseModel
|
||||
public int SaleCount { get; set; }
|
||||
public int ViewCount { get; set; }
|
||||
public int RemainingCount { get; set; }
|
||||
// لیست شناسه دستهبندیهای محصول
|
||||
public List<long> CategoryIds { get; set; } = new();
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -14,5 +14,6 @@ public class GetProductsResponseDto
|
||||
public int SaleCount { get; set; }
|
||||
public int ViewCount { get; set; }
|
||||
public int RemainingCount { get; set; }
|
||||
// لیست شناسه دستهبندیهای محصول
|
||||
public List<long> CategoryIds { get; set; } = new();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user