MAJ Product's DTO

This commit is contained in:
2025-10-08 16:30:20 +02:00
parent bd8495b79a
commit 423f8f9645
7 changed files with 34 additions and 13 deletions

View File

@@ -1,4 +1,6 @@
namespace API.DTO.Product.Request;
using PyroFetes.Models;
namespace PyroFetes.DTO.Product.Request;
public class CreateProductDto
{
@@ -15,4 +17,9 @@ public class CreateProductDto
public int ClassificationId { get; set;}
public int ProductCategoryId { get; set; }
public List<Brand>? Brands { get; set; }
public List<ProductEffect>? Effects { get; set; }
public List<ProductColor>? Colors {get; set;}
public List<Price>? Prices {get; set;}
public List<WarehouseProduct>? WarehouseProducts {get; set; }
}

View File

@@ -1,4 +1,6 @@
namespace API.DTO.Product.Request;
using PyroFetes.Models;
namespace PyroFetes.DTO.Product.Request;
public class UpdateProductDto
{
@@ -15,4 +17,9 @@ public class UpdateProductDto
public string? Link { get; set; }
public int ClassificationId { get; set;}
public int ProductCategoryId { get; set; }
public List<Brand>? Brands { get; set; }
public List<ProductEffect>? Effects { get; set; }
public List<ProductColor>? Colors {get; set;}
public List<Price>? Prices {get; set;}
public List<WarehouseProduct>? WarehouseProducts {get; set; }
}

View File

@@ -1,4 +1,6 @@
namespace API.DTO.Product.Response;
using PyroFetes.Models;
namespace PyroFetes.DTO.Product.Response;
public class GetProductDto
{
@@ -17,4 +19,9 @@ public class GetProductDto
public string? ClassificationLabel { get; set; }
public int ProductCategoryId { get; set; }
public string? ProductCategoryLabel { get; set; }
public List<Brand>? Brands { get; set; }
public List<ProductEffect>? Effects { get; set; }
public List<ProductColor>? Colors {get; set;}
public List<Price>? Prices {get; set;}
public List<WarehouseProduct>? WarehouseProducts {get; set; }
}

View File

@@ -1,6 +1,6 @@
using API.DTO.Product.Request;
using API.DTO.Product.Response;
using FastEndpoints;
using FastEndpoints;
using PyroFetes.DTO.Product.Request;
using PyroFetes.DTO.Product.Response;
namespace PyroFetes.Endpoints.Product;

View File

@@ -1,6 +1,6 @@
using API.DTO.Product.Response;
using FastEndpoints;
using FastEndpoints;
using Microsoft.EntityFrameworkCore;
using PyroFetes.DTO.Product.Response;
namespace PyroFetes.Endpoints.Product;

View File

@@ -1,6 +1,6 @@
using API.DTO.Product.Response;
using FastEndpoints;
using FastEndpoints;
using Microsoft.EntityFrameworkCore;
using PyroFetes.DTO.Product.Response;
namespace PyroFetes.Endpoints.Product;

View File

@@ -1,7 +1,7 @@
using API.DTO.Product.Request;
using API.DTO.Product.Response;
using FastEndpoints;
using FastEndpoints;
using Microsoft.EntityFrameworkCore;
using PyroFetes.DTO.Product.Request;
using PyroFetes.DTO.Product.Response;
namespace PyroFetes.Endpoints.Product;