1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using TEAMModelOS.SDK.Models.Cosmos.Common;
- using TEAMModelOS.SDK.Models.Dtos;
- namespace TEAMModelOS.SDK.Models
- {
- public class ProdAnalysis : ProdAnalysisCalItem
- {
- public string schoolId { get; set; } //學校ID
- }
- public class ProdAnalysisApiResult : ProdAnalysis
- {
- public ProdAnalysisApiResult()
- {
- school = new SchoolSimple();
- }
- public SchoolSimple school { get; set; }
- public string dateUnit { get; set; }
- public string date { get; set; } //日期 [例] 2022、202203、20220314
- public int year { get; set; } //统计日期:年
- public int month { get; set; } //统计日期:月
- public int day { get; set; } //统计日期:日
- }
- public class ProdAnalysisCosmos : ProdAnalysis
- {
- public ProdAnalysisCosmos()
- {
- pk = "ProdAnalysis";
- code = "ProdAnalysis";
- deviceList = new List<string>();
- }
- public string pk { get; set; }
- public string code { get; set; }
- public string id { get; set; }
- public string dateUnit { get; set; } //統計日期單位 "year":年統計 "month":月統計 "day":日統計
- public string date { get; set; } //统计日期 ※依据dateUnit变化 [例]"year":2023 "month":202302 "day":20230210
- public long dateTime { get; set; } //timestamp UTC milisecond 比較時間用
- public int year { get; set; } //统计日期:年
- public int month { get; set; } //统计日期:月
- public int day { get; set; } //统计日期:日
- public long createDate { get; set; } //統計時間
- public int? ttl { get; set; } = -1;
- }
- public class SchoolSimple
- {
- public string name { get; set; }
- public string region { get; set; }
- public string province { get; set; }
- public string city { get; set; }
- public string dist { get; set; }
- public string areaId { get; set; }
- public string type { get; set; }
- }
- }
|