GeoAnalysis.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using TEAMModelOS.SDK.Models.Cosmos;
  6. using static TEAMModelOS.SDK.Models.Cosmos.IotTeachingData;
  7. namespace TEAMModelOS.SDK.Models
  8. {
  9. public class GeoAnalysis : ProdAnalysisCalItem
  10. {
  11. public string geoId { get; set; } //形式: $"{countryId}-{provinceId}-{cityId}-{distId}" [例]"TW--30-"、"CN-41-410100-"、"MY---"
  12. public Geo geo { get; set; }
  13. }
  14. public class GeoAnalysisCosmos : GeoAnalysis
  15. {
  16. public GeoAnalysisCosmos()
  17. {
  18. pk = "GeoAnalysis";
  19. code = "GeoAnalysis";
  20. }
  21. public string pk { get; set; }
  22. public string code { get; set; }
  23. public string id { get; set; }
  24. public string dateUnit { get; set; } //統計日期單位 "year":年統計 "month":月統計 "day":日統計
  25. public string date { get; set; } //统计日期 ※依据dateUnit变化 [例]"year":2023 "month":202302 "day":20230210
  26. public long dateTime { get; set; } //timestamp UTC milisecond 比較時間用
  27. public int year { get; set; } //统计日期:年
  28. public int month { get; set; } //统计日期:月
  29. public int day { get; set; } //统计日期:日
  30. public long createDate { get; set; } //統計時間
  31. public int? ttl { get; set; } = -1;
  32. }
  33. }