Add category IDs support to product DTOs and protobuf

This commit is contained in:
masoodafar-web
2025-11-27 05:43:01 +03:30
parent 8878c07031
commit 3e5f8348c2
9 changed files with 20 additions and 8 deletions
@@ -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; }
}
@@ -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; }
}
@@ -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();
}
@@ -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();
}