forked from sanchezvem/PyroFetes
Commentaire des DTO
This commit is contained in:
@@ -1,21 +1,43 @@
|
||||
namespace API.DTO.Warehouse.Request;
|
||||
|
||||
public class UpdateWarehouseDto
|
||||
namespace API.DTO.Warehouse.Request
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int MaxWeight { get; set; }
|
||||
public int Current { get; set; }
|
||||
public int MinWeight { get; set; }
|
||||
public string Adress { get; set; }
|
||||
public int ZipCode { get; set; }
|
||||
public string City { get; set; }
|
||||
|
||||
public List<UpdateWarehouseProductDto>? Products { get; set; }
|
||||
}
|
||||
// DTO pour mettre à jour un entrepôt
|
||||
public class UpdateWarehouseDto
|
||||
{
|
||||
// Identifiant de l'entrepôt à mettre à jour
|
||||
public int Id { get; set; }
|
||||
|
||||
public class UpdateWarehouseProductDto
|
||||
{
|
||||
public int ProductId { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
// Nom de l'entrepôt
|
||||
public string Name { get; set; }
|
||||
|
||||
// Poids maximal que l'entrepôt peut contenir
|
||||
public int MaxWeight { get; set; }
|
||||
|
||||
// Poids actuel stocké
|
||||
public int Current { get; set; }
|
||||
|
||||
// Poids minimal souhaité
|
||||
public int MinWeight { get; set; }
|
||||
|
||||
// Adresse de l'entrepôt
|
||||
public string Adress { get; set; }
|
||||
|
||||
// Code postal
|
||||
public int ZipCode { get; set; }
|
||||
|
||||
// Ville
|
||||
public string City { get; set; }
|
||||
|
||||
// Liste des produits à mettre à jour dans cet entrepôt
|
||||
public List<UpdateWarehouseProductDto>? Products { get; set; }
|
||||
}
|
||||
|
||||
// DTO pour mettre à jour la quantité d'un produit dans un entrepôt
|
||||
public class UpdateWarehouseProductDto
|
||||
{
|
||||
// Identifiant du produit
|
||||
public int ProductId { get; set; }
|
||||
|
||||
// Nouvelle quantité du produit dans l'entrepôt
|
||||
public int Quantity { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user