Purchase.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System.Collections.Generic;
  2. namespace TEAMModelBI.Models
  3. {
  4. /// <summary>
  5. /// 統購授權 縣市名額
  6. /// </summary>
  7. public class PurchaseSeats
  8. {
  9. public string id { get; set; } //統購縣市名額ID 格式:{countryId}-{provinceId}-{cityId}-{districtId}-{產品代碼}
  10. public string countryId { get; set; } //[String]國家代碼
  11. public string provinceId { get; set; } //[String]省代碼
  12. public string cityId { get; set; } //[String]市代碼
  13. public string districtId { get; set; } //[String]區代碼
  14. public string geoName { get; set; } //行政區名稱
  15. public string prodCode { get; set; } //產品代碼
  16. public long startDate { get; set; } //授權起始日期 unixtimestamp
  17. public long endDate { get; set; } //授權終止日期 unixtimestamp
  18. public int seats { get; set; } //名額數
  19. public int number { get; set; } //產品數量、空間數
  20. public int used { get; set; } //已領用名額數 (document並無此欄位,各校名額加總累計用)
  21. public object aprule { get; set; } //產品擴充項
  22. public string dataType { get; set; } //分區鍵:purchase
  23. }
  24. /// <summary>
  25. /// 統購授權 各校名額
  26. /// </summary>
  27. public class PurchaseSchoolSeats
  28. {
  29. public string schoolCode { get; set; }
  30. public string shortCode { get; set; }
  31. public string schoolName { get; set; }
  32. public int seats { get; set; }
  33. public string id { get; set; } //統購學校名額ID 格式:{countryId}-{provinceId}-{cityId}-{districtId}-{產品代碼}-{學校簡碼}
  34. public string purchaseId { get; set; } //統購縣市名額ID 格式:{countryId}-{provinceId}-{cityId}-{districtId}-{產品代碼}
  35. public List<string> tmids { get; set; } = new List<string>(); //已申請的TMID
  36. public int used { get; set; } //已領用名額數
  37. public int ttl { get; set; } = -1;
  38. public string dataType { get; set; } //分區鍵:purchaseSchool
  39. }
  40. }