Fase 3: Implementación de Listings (Avisos) - Entidades, Repositorio, API y Frontend Wizard integración
This commit is contained in:
22
src/SIGCM.Application/DTOs/ListingDtos.cs
Normal file
22
src/SIGCM.Application/DTOs/ListingDtos.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace SIGCM.Application.DTOs;
|
||||
|
||||
public class CreateListingDto
|
||||
{
|
||||
public int CategoryId { get; set; }
|
||||
public int OperationId { get; set; }
|
||||
public required string Title { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public decimal Price { get; set; }
|
||||
public string Currency { get; set; } = "ARS";
|
||||
public int? UserId { get; set; }
|
||||
|
||||
// Dictionary of AttributeDefinitionId -> Value
|
||||
public Dictionary<int, string> Attributes { get; set; } = new();
|
||||
}
|
||||
|
||||
public class ListingDto : CreateListingDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user