diff --git a/PyroFetes/DTO/Product/Request/CreateProductDto.cs b/PyroFetes/DTO/Product/Request/CreateProductDto.cs new file mode 100644 index 0000000..24ecf17 --- /dev/null +++ b/PyroFetes/DTO/Product/Request/CreateProductDto.cs @@ -0,0 +1,15 @@ +namespace PyroFetes.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 string? Image { get; set; } + public string? Link { get; set; } + public int MinimalQuantity { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/Product/Request/PatchProductMinimalStockDto.cs b/PyroFetes/DTO/Product/Request/PatchProductMinimalStockDto.cs new file mode 100644 index 0000000..424f666 --- /dev/null +++ b/PyroFetes/DTO/Product/Request/PatchProductMinimalStockDto.cs @@ -0,0 +1,7 @@ +namespace PyroFetes.DTO.Product.Request; + +public class PatchProductMinimalStockDto +{ + public int Id { get; set; } + public int MinimalQuantity { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/Product/Request/UpdateProductDto.cs b/PyroFetes/DTO/Product/Request/UpdateProductDto.cs new file mode 100644 index 0000000..0548119 --- /dev/null +++ b/PyroFetes/DTO/Product/Request/UpdateProductDto.cs @@ -0,0 +1,16 @@ +namespace PyroFetes.DTO.Product.Request; + +public class UpdateProductDto +{ + public int Id { get; set; } + 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 string? Image { get; set; } + public string? Link { get; set; } + public int MinimalQuantity { get; set; } +} \ No newline at end of file diff --git a/PyroFetes/DTO/Product/Response/GetProductDto.cs b/PyroFetes/DTO/Product/Response/GetProductDto.cs new file mode 100644 index 0000000..6781381 --- /dev/null +++ b/PyroFetes/DTO/Product/Response/GetProductDto.cs @@ -0,0 +1,16 @@ +namespace PyroFetes.DTO.Product.Response; + +public class GetProductDto +{ + public int Id { get; set; } + 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 string? Image { get; set; } + public string? Link { get; set; } + public int MinimalQuantity { get; set; } +} \ No newline at end of file