17:17 09/10

This commit is contained in:
2025-10-09 17:17:42 +02:00
parent 1734ec0219
commit 91b4aca2fa
76 changed files with 815 additions and 388 deletions

View File

@@ -2,11 +2,20 @@
public class CreateWarehouseDto
{
public string Name {get; set;}
public int MaxWeight {get; set;}
public int Current {get; set;}
public int MinWeight {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; }
// Liste des produits à stocker dans cet entrepôt
public List<CreateWarehouseProductDto>? Products { get; set; }
}
public class CreateWarehouseProductDto
{
public int ProductId { get; set; }
public int Quantity { get; set; }
}

View File

@@ -1,13 +1,21 @@
namespace API.DTO.Warehouse.Request;
namespace API.DTO.Warehouse.Request;
public class UpdateWarehouseDto
{
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 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; }
}
public class UpdateWarehouseProductDto
{
public int ProductId { get; set; }
public int Quantity { get; set; }
}