Product.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System.Text.Json.Serialization;
  2. namespace goods.Models.Coupang.Product
  3. {
  4. public class Response
  5. {
  6. [JsonPropertyName("rCode")]
  7. public string RCode { get; set; } = null!;
  8. [JsonPropertyName("rMessage")]
  9. public string RMessage { get; set; } = null!;
  10. [JsonPropertyName("data")]
  11. public List<Data> Data { get; set; } = [];
  12. }
  13. public class Data
  14. {
  15. [JsonPropertyName("categoryName")]
  16. public string CategoryName { get; set; } = null!;
  17. [JsonPropertyName("keyword")]
  18. public string Keyword { get; set; } = null!;
  19. [JsonPropertyName("rank")]
  20. public int Rank { get; set; }
  21. [JsonPropertyName("isRocket")]
  22. public bool IsRocket { get; set; }
  23. [JsonPropertyName("isFreeShipping")]
  24. public bool IsFreeShipping { get; set; }
  25. [JsonPropertyName("productId")]
  26. public long ProductId { get; set; }
  27. [JsonPropertyName("productImage")]
  28. public string ProductImage { get; set; } = null!;
  29. [JsonPropertyName("productName")]
  30. public string ProductName { get; set; } = null!;
  31. [JsonPropertyName("productPrice")]
  32. [JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
  33. public decimal ProductPrice { get; set; }
  34. [JsonPropertyName("productUrl")]
  35. public string ProductUrl { get; set; } = null!;
  36. }
  37. }