Product.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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; }
  8. [JsonPropertyName("rMessage")]
  9. public string RMessage { get; set; }
  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; }
  17. [JsonPropertyName("keyword")]
  18. public string Keyword { get; set; }
  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; }
  29. [JsonPropertyName("productName")]
  30. public string ProductName { get; set; }
  31. [JsonPropertyName("productPrice")]
  32. public int ProductPrice { get; set; }
  33. [JsonPropertyName("productUrl")]
  34. public string ProductUrl { get; set; }
  35. }
  36. }