mirror of
https://github.com/Shchoholiev/shopping-assistant-api.git
synced 2025-04-04 16:49:36 +00:00
added a new field to the Product entity and to Dtos
This commit is contained in:
parent
d3dd06fb58
commit
58ae7af0fa
@ -10,6 +10,8 @@ public class ProductCreateDto
|
||||
|
||||
public required double Rating { get; set; }
|
||||
|
||||
public required double Price { get; set; }
|
||||
|
||||
public required string[] ImagesUrls { get; set; }
|
||||
|
||||
public required bool WasOpened { get; set; }
|
||||
|
@ -12,6 +12,8 @@ public class ProductDto
|
||||
|
||||
public required double Rating { get; set; }
|
||||
|
||||
public required double Price { get; set; }
|
||||
|
||||
public required string[] ImagesUrls { get; set; }
|
||||
|
||||
public required bool WasOpened { get; set; }
|
||||
|
@ -18,5 +18,7 @@ public class Product : EntityBase
|
||||
|
||||
public bool WasOpened { get; set; }
|
||||
|
||||
public double Price { get; set; }
|
||||
|
||||
public ObjectId WishlistId { get; set; }
|
||||
}
|
||||
|
@ -152,6 +152,7 @@ public class ProductService : IProductService
|
||||
Name = productBuffer.Name,
|
||||
Rating = 0,
|
||||
Description = "",
|
||||
Price = 0,
|
||||
ImagesUrls = new []{"", ""},
|
||||
WasOpened = false
|
||||
}, cancellationToken);
|
||||
|
Loading…
Reference in New Issue
Block a user