|
@@ -9,6 +9,7 @@ using TEAMModelOS.SDK.DI;
|
|
|
|
|
|
namespace TEAMModelOS.SDK.Models
|
|
|
{
|
|
|
+ //產品購買紀錄
|
|
|
public class SchoolProductCommon : CosmosEntity
|
|
|
{
|
|
|
public SchoolProductCommon()
|
|
@@ -18,6 +19,7 @@ namespace TEAMModelOS.SDK.Models
|
|
|
public string dataType { get; set; }
|
|
|
public string prodCode { get; set; }
|
|
|
}
|
|
|
+ //產品購買紀錄-序號
|
|
|
public class SchoolProductSerial : SchoolProductCommon
|
|
|
{
|
|
|
public string serial { get; set; }
|
|
@@ -31,6 +33,7 @@ namespace TEAMModelOS.SDK.Models
|
|
|
public string expireStatus { get; set; }
|
|
|
public int status { get; set; }
|
|
|
}
|
|
|
+ //產品購買紀錄-服務
|
|
|
public class SchoolProductService : SchoolProductCommon
|
|
|
{
|
|
|
public long startDate { get; set; }
|
|
@@ -38,12 +41,13 @@ namespace TEAMModelOS.SDK.Models
|
|
|
public int number { get; set; }
|
|
|
public string unit { get; set; }
|
|
|
}
|
|
|
+ //產品購買紀錄-硬體
|
|
|
public class SchoolProductHard : SchoolProductCommon
|
|
|
{
|
|
|
public string model { get; set; }
|
|
|
public string serial { get; set; }
|
|
|
}
|
|
|
-
|
|
|
+ //產品一覽
|
|
|
public class SchoolProductSum
|
|
|
{
|
|
|
public SchoolProductSum()
|
|
@@ -88,6 +92,8 @@ namespace TEAMModelOS.SDK.Models
|
|
|
public string prodCode { get; set; }
|
|
|
public List<string> ids { get; set; }
|
|
|
public int avaliable { get; set; }
|
|
|
+ public long startDate { get; set; }
|
|
|
+ public long endDate { get; set; }
|
|
|
}
|
|
|
|
|
|
public class SchoolProductSumDataHard : SchoolProductSumData
|
|
@@ -104,7 +110,7 @@ namespace TEAMModelOS.SDK.Models
|
|
|
public long avaliableStartDate { get; set; }
|
|
|
public long avaliableEndDate { get; set; }
|
|
|
}
|
|
|
- //產品購買紀錄
|
|
|
+ //產品購買紀錄(前端顯示用)
|
|
|
public class SchoolProductOrderList
|
|
|
{
|
|
|
public string id { get; set; }
|
|
@@ -114,13 +120,21 @@ namespace TEAMModelOS.SDK.Models
|
|
|
public string unit { get; set; }
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//序號資訊(含deviceId、classId、OS等硬體資訊)
|
|
|
public class SerialInfoBaseWithdeviceBoundExt : SchoolProductSerial
|
|
|
{
|
|
|
public new List<deviceBoundExt> deviceBound { get; set; }
|
|
|
}
|
|
|
|
|
|
+ //服務授權期限(主週期資訊) ※code='Product' code='Product-{SchoolID}' dataType='servicePeriod'
|
|
|
+ public class SchoolProductServicePeriod : SchoolProductCommon
|
|
|
+ {
|
|
|
+ public long startDate { get; set; }
|
|
|
+ public long endDate { get; set; }
|
|
|
+ public int number { get; set; }
|
|
|
+ public string unit { get; set; }
|
|
|
+ }
|
|
|
+
|
|
|
/////////////////////////////////////////////////////////
|
|
|
|
|
|
|