23 lines
653 B
C#
23 lines
653 B
C#
|
|
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; }
|
||
|
|
}
|