AJout des DTO et endpoint sur le nouveau git

This commit is contained in:
2025-10-08 15:46:36 +02:00
parent 04cb47802b
commit c729af3d32
66 changed files with 1703 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
namespace API.DTO.Brand.Request;
public class CreateBrandDto
{
public string? Name { get; set; }
}

View File

@@ -0,0 +1,8 @@
namespace API.DTO.Brand.Request;
public class UpdateBrandDto
{
public int Id { get; set; }
public string? Name { get; set; }
}

View File

@@ -0,0 +1,8 @@
namespace API.DTO.Brand.Response;
public class GetBrandDto
{
public int Id { get; set; }
public string? Name { get; set; }
}

View File

@@ -0,0 +1,7 @@
namespace API.DTO.Classification.Request;
public class CreateClassificationDto
{
public string? Label { get; set; }
}

View File

@@ -0,0 +1,8 @@
namespace API.DTO.Classification.Request;
public class UpdateClassificationDto
{
public int Id { get; set; }
public string? Label { get; set; }
}

View File

@@ -0,0 +1,8 @@
namespace API.DTO.Classification.Response;
public class GetClassificationDto
{
public int Id { get; set; }
public string? Label { get; set; }
}

View File

@@ -0,0 +1,6 @@
namespace API.DTO.Color.Request;
public class CreateColorDto
{
public string? Label { get; set; }
}

View File

@@ -0,0 +1,7 @@
namespace API.DTO.Color.Request;
public class UpdateColorDto
{
public int Id { get; set; }
public string? Label { get; set; }
}

View File

@@ -0,0 +1,7 @@
namespace API.DTO.Color.Response;
public class GetColorDto
{
public int Id { get; set; }
public string? Label { get; set; }
}

View File

@@ -0,0 +1,6 @@
namespace API.DTO.Effect.Request;
public class CreateEffectDto
{
public string? Label { get; set; }
}

View File

@@ -0,0 +1,7 @@
namespace API.DTO.Effect.Request;
public class UpdateEffectDto
{
public int Id { get; set; }
public string? Label { get; set; }
}

View File

@@ -0,0 +1,7 @@
namespace API.DTO.Effect.Response;
public class GetEffectDto
{
public int Id { get; set; }
public string? Label { get; set; }
}

View File

@@ -0,0 +1,7 @@
namespace API.DTO.Material.Request;
public class CreateMaterialDto
{
public string? Label { get; set; }
public int Quantity { get; set; }
}

View File

@@ -0,0 +1,8 @@
namespace API.DTO.Material.Request;
public class UpdateMaterialDto
{
public int Id { get; set; }
public string? Label { get; set; }
public int Quantity { get; set; }
}

View File

@@ -0,0 +1,8 @@
namespace API.DTO.Material.Response;
public class GetMaterialDto
{
public int Id { get; set; }
public string? Label { get; set; }
public int Quantity { get; set; }
}

View File

@@ -0,0 +1,10 @@
namespace API.DTO.Movement.Request;
public class CreateMovementDto
{
public DateTime Date { get; set; }
public DateTime Start {get; set;}
public DateTime Arrival {get; set;}
public int Quantity {get; set;}
}

View File

@@ -0,0 +1,11 @@
namespace API.DTO.Movement.Request;
public class UpdateMovementDto
{
public int Id { get; set; }
public DateTime Date { get; set; }
public DateTime Start {get; set;}
public DateTime Arrival {get; set;}
public int Quantity {get; set;}
}

View File

@@ -0,0 +1,11 @@
namespace API.DTO.Movement.Response;
public class GetMovementDto
{
public int Id { get; set; }
public DateTime Date { get; set; }
public DateTime Start {get; set;}
public DateTime Arrival {get; set;}
public int Quantity {get; set;}
}

View File

@@ -0,0 +1,18 @@
namespace API.DTO.Product.Request;
public class CreateProductDto
{
public int References { get; set; }
public string? Name { get; set; }
public decimal Duration { get; set; }
public decimal Caliber { get; set; }
public int ApprovalNumber { get; set; }
public decimal Weight { get; set; }
public decimal Nec { get; set; }
public decimal SellingPrice {get; set;}
public string? Image { get; set; }
public string? Link { get; set; }
public int ClassificationId { get; set;}
public int ProductCategoryId { get; set; }
}

View File

@@ -0,0 +1,18 @@
namespace API.DTO.Product.Request;
public class UpdateProductDto
{
public int Id { get; set; }
public int Reference { get; set; }
public string? Name { get; set; }
public decimal Duration { get; set; }
public decimal Caliber { get; set; }
public int ApprovalNumber { get; set; }
public decimal Weight { get; set; }
public decimal Nec { get; set; }
public decimal SellingPrice {get; set;}
public string? Image { get; set; }
public string? Link { get; set; }
public int ClassificationId { get; set;}
public int ProductCategoryId { get; set; }
}

View File

@@ -0,0 +1,20 @@
namespace API.DTO.Product.Response;
public class GetProductDto
{
public int Id { get; set; }
public int Reference { get; set; }
public string? Name { get; set; }
public decimal Duration { get; set; }
public decimal Caliber { get; set; }
public int ApprovalNumber { get; set; }
public decimal Weight { get; set; }
public decimal Nec { get; set; }
public decimal SellingPrice {get; set;}
public string? Image { get; set; }
public string? Link { get; set; }
public int ClassificationId { get; set;}
public string? ClassificationLabel { get; set; }
public int ProductCategoryId { get; set; }
public string? ProductCategoryLabel { get; set; }
}

View File

@@ -0,0 +1,6 @@
namespace API.DTO.ProductCategory.Request;
public class CreateProductCategoryDto
{
public string? Label { get; set; }
}

View File

@@ -0,0 +1,7 @@
namespace API.DTO.ProductCategory.Request;
public class UpdateProductCategoryDto
{
public int Id { get; set; }
public string? Label { get; set; }
}

View File

@@ -0,0 +1,8 @@
namespace API.DTO.ProductCategory.Response;
public class GetProductCategoryDto
{
public int Id { get; set; }
public string? Label { get; set; }
}

View File

@@ -0,0 +1,11 @@
namespace API.DTO.Supplier.Request;
public class CreateSupplierDto
{
public string Name { get; set; }
public string Email { get; set; }
public string PhoneNumber { get; set; }
public string Adress { get; set; }
public int ZipCode { get; set; }
public string City { get; set; }
}

View File

@@ -0,0 +1,12 @@
namespace API.DTO.Supplier.Request;
public class UpdateSupplierDto
{
public int Id { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public string PhoneNumber { get; set; }
public string Adress { get; set; }
public int ZipCode { get; set; }
public string City { get; set; }
}

View File

@@ -0,0 +1,12 @@
namespace API.DTO.Supplier.Response;
public class GetSupplierDto
{
public int Id { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public string PhoneNumber { get; set; }
public string Adress { get; set; }
public int ZipCode { get; set; }
public string City { get; set; }
}

View File

@@ -0,0 +1,12 @@
namespace API.DTO.Warehouse.Request;
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 Adress { get; set; }
public int ZipCode { get; set; }
public string City { get; set; }
}

View File

@@ -0,0 +1,13 @@
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 string Adress { get; set; }
public int ZipCode { get; set; }
public string City { get; set; }
}

View File

@@ -0,0 +1,13 @@
namespace API.DTO.Warehouse.Response;
public class GetWarehouseDto
{
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; }
}