using System.Collections.Generic; namespace TEAMModelBI.Models { /// /// 統購授權 縣市名額 /// public class PurchaseSeats { public string id { get; set; } //統購縣市名額ID 格式:{countryId}-{provinceId}-{cityId}-{districtId}-{產品代碼} public string countryId { get; set; } //[String]國家代碼 public string provinceId { get; set; } //[String]省代碼 public string cityId { get; set; } //[String]市代碼 public string districtId { get; set; } //[String]區代碼 public string geoName { get; set; } //行政區名稱 public string prodCode { get; set; } //產品代碼 public long startDate { get; set; } //授權起始日期 unixtimestamp public long endDate { get; set; } //授權終止日期 unixtimestamp public int seats { get; set; } //名額數 public int number { get; set; } //產品數量、空間數 public int used { get; set; } //已領用名額數 (document並無此欄位,各校名額加總累計用) public object aprule { get; set; } //產品擴充項 public string dataType { get; set; } //分區鍵:purchase } /// /// 統購授權 各校名額 /// public class PurchaseSchoolSeats { public string schoolCode { get; set; } public string shortCode { get; set; } public string schoolName { get; set; } public int seats { get; set; } public string id { get; set; } //統購學校名額ID 格式:{countryId}-{provinceId}-{cityId}-{districtId}-{產品代碼}-{學校簡碼} public string purchaseId { get; set; } //統購縣市名額ID 格式:{countryId}-{provinceId}-{cityId}-{districtId}-{產品代碼} public List tmids { get; set; } = new List(); //已申請的TMID public int used { get; set; } //已領用名額數 public int ttl { get; set; } = -1; public string dataType { get; set; } //分區鍵:purchaseSchool } }