MAJ Mathilde

This commit is contained in:
2025-10-09 15:16:08 +02:00
parent f155d03559
commit d1fa3aca68
24 changed files with 628 additions and 211 deletions

View File

@@ -8,4 +8,13 @@ public class CreateSupplierDto
public string Adress { get; set; }
public int ZipCode { get; set; }
public string City { get; set; }
// Produits que ce fournisseur fournit
public List<SupplierProductPriceDto>? Products { get; set; }
}
public class SupplierProductPriceDto
{
public int ProductId { get; set; }
public decimal SellingPrice { get; set; }
}

View File

@@ -9,4 +9,6 @@ public class UpdateSupplierDto
public string Adress { get; set; }
public int ZipCode { get; set; }
public string City { get; set; }
public List<SupplierProductPriceDto>? Products { get; set; }
}

View File

@@ -1,4 +1,6 @@
namespace API.DTO.Supplier.Response;
using API.DTO.Supplier.Request;
namespace API.DTO.Supplier.Response;
public class GetSupplierDto
{
@@ -9,4 +11,14 @@ public class GetSupplierDto
public string Adress { get; set; }
public int ZipCode { get; set; }
public string City { get; set; }
// Liste des produits liés avec leur prix fournisseur
public List<SupplierProductPriceDto> Products { get; set; }
}
public class GetSupplierProductDto
{
public int ProductId { get; set; }
public string ProductName { get; set; } = string.Empty;
public decimal SellingPrice { get; set; }
}