CheckPoint: Avances Varios
This commit is contained in:
@@ -9,14 +9,38 @@ public class CreateListingDto
|
||||
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 string? PrintText { get; set; }
|
||||
public string? PrintFontSize { get; set; }
|
||||
public string? PrintAlignment { get; set; }
|
||||
public int PrintDaysCount { get; set; }
|
||||
}
|
||||
|
||||
public class ListingDto : CreateListingDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public string Status { get; set; }
|
||||
public required string Status { get; set; }
|
||||
}
|
||||
|
||||
public class ListingDetailDto : ListingDto
|
||||
{
|
||||
public IEnumerable<ListingAttributeDto> AttributeValues { get; set; } = new List<ListingAttributeDto>();
|
||||
public IEnumerable<ListingImageDto> Images { get; set; } = new List<ListingImageDto>();
|
||||
}
|
||||
|
||||
public class ListingAttributeDto
|
||||
{
|
||||
public int ListingId { get; set; }
|
||||
public int AttributeDefinitionId { get; set; }
|
||||
public required string AttributeName { get; set; }
|
||||
public required string Value { get; set; }
|
||||
}
|
||||
|
||||
public class ListingImageDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string Url { get; set; }
|
||||
public bool IsMainInfo { get; set; }
|
||||
public int DisplayOrder { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user