Flower.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System.Text.Json.Serialization;
  2. namespace economy.Models.Price.Domestic.Flower
  3. {
  4. // 검색결과 변수
  5. public class Response
  6. {
  7. [JsonPropertyName("resultCd")]
  8. public string ResultCode { get; set; }
  9. [JsonPropertyName("resultMsg")]
  10. public string ResultMsg { get; set; }
  11. [JsonPropertyName("numOfRows")]
  12. [JsonConverter(typeof(FlexibleTypeConverter<int>))]
  13. public int NumberOfRows { get; set; }
  14. [JsonPropertyName("items")]
  15. public List<Item> Items { get; set; }
  16. }
  17. public class Item
  18. {
  19. public int Num { get; set; }
  20. [JsonPropertyName("saleDate")]
  21. public string SaleDate { get; set; } // 경매일자
  22. [JsonPropertyName("flowerGubn")]
  23. public string FlowerGubn { get; set; } // 화훼부류명
  24. [JsonPropertyName("pumName")]
  25. public string PumName { get; set; } // 품목명
  26. [JsonPropertyName("goodName")]
  27. public string GoodName { get; set; } // 품종명
  28. [JsonPropertyName("lvNm")]
  29. public string LvNm { get; set; } // 등급명
  30. [JsonPropertyName("maxAmt")]
  31. public string MaxAmt { get; set; } // 최고가
  32. [JsonPropertyName("minAmt")]
  33. public string MinAmt { get; set; } // 최저가
  34. [JsonPropertyName("avgAmt")]
  35. public string AvgAmt { get; set; } // 평균가
  36. [JsonPropertyName("totAmt")]
  37. public string TotAmt { get; set; } // 총금액
  38. [JsonPropertyName("totQty")]
  39. public string TotQty { get; set; } // 총물량
  40. }
  41. }