From 60003dd89f952703fd3c7eeaa77017fbd51ee054 Mon Sep 17 00:00:00 2001 From: "jay.chang" Date: Wed, 5 Feb 2025 10:52:52 +0800 Subject: [PATCH] =?UTF-8?q?[WebApi][BGService]=E6=B0=A3=E8=B1=A1=E5=B1=80?= =?UTF-8?q?=E8=B3=87=E6=96=99=E6=94=B9=E7=89=88=E5=B0=8D=E6=87=89=E8=AA=BF?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Backend/Models/WeatherAPIJob.cs | 112 ++++++++ .../Quartz/Jobs/WeatherAPIJob.cs | 239 +++++++++++------- .../ApiControllers/BuildController.cs | 10 +- 3 files changed, 259 insertions(+), 102 deletions(-) diff --git a/Backend/Models/WeatherAPIJob.cs b/Backend/Models/WeatherAPIJob.cs index 338b809..65f7613 100644 --- a/Backend/Models/WeatherAPIJob.cs +++ b/Backend/Models/WeatherAPIJob.cs @@ -266,7 +266,119 @@ namespace Backend.Models #endregion + #region 新架構 weather api + public class Root3 + { + public string Success { get; set; } + public Records3 Records { get; set; } + } + public class Records3 + { + public string DatasetDescription { get; set; } + public string LocationsName { get; set; } + public string Dataid { get; set; } + public List Locations { get; set; } + } + + public class Locations3 + { + public List Location { get; set; } + } + + public class Location3 + { + public string LocationName { get; set; } + public string Geocode { get; set; } + public string Latitude { get; set; } + public string Longitude { get; set; } + public List WeatherElement { get; set; } + } + + public class WeatherElement3 + { + public string ElementName { get; set; } + public List