Add category IDs support to product DTOs and protobuf
This commit is contained in:
+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