Ver Fonte

統測活動用ClouDas分析API(途中)

jeff há 7 meses atrás
pai
commit
504215870d

+ 2 - 2
TEAMModelOS.SDK/Models/Cosmos/Teacher/JointEvent.cs

@@ -153,8 +153,8 @@ namespace TEAMModelOS.SDK.Models
         public string name { get; set; }
         public string examType { get; set; } //評量類型 "regular":一般競賽 "custom":決賽
         public bool examOverwrite { get; set; } //評量可否重複作答 true:可 false:不可
-        public List<JointEventClassBase> classes { get; set; } = new(); //班級列表 ※examType="custom"才填入,其餘評量班級從報名班級(DB)取得
-        public List<JointEventGroupBase> stuLists { get; set; } = new(); //個人課程列表 ※examType="custom"才填入,其餘評量班級從老師報名課程(DB)取得
+        public List<JointEventClassBase> classes { get; set; } = new(); //[不使用] 評量班級從報名班級(DB)取得
+        public List<JointEventGroupBase> stuLists { get; set; } = new(); //[不使用] 評量班級從老師報名課程(DB)取得
         public List<PaperSimple> papers { get; set; } = new();
         public string progress { get; set; } //進行狀況 "pending" "going" "finish"
         public long createTime { get; set; }

Diff do ficheiro suprimidas por serem muito extensas
+ 1065 - 20
TEAMModelOS/Controllers/Analysis/AnalysisController.cs


+ 2 - 2
TEAMModelOS/Controllers/XTest/BusinessController.cs

@@ -236,7 +236,7 @@ namespace TEAMModelOS.Controllers.XTest
             }
 
             //文件夹(关联id)导向的文件夹 exam  homework art records  survey  vote  item
-            string[] prefixDirId = new string[] { "exam", "homework", "art", "records", "survey", "vote", "item" };
+            string[] prefixDirId = new string[] { "exam", "homework", "art", "records", "survey", "vote", "item", "local", "temp" };
             HashSet<string> ids = new HashSet<string>();
             Dictionary<string, List<KeyValuePair<string, long?>>> recordUrls = new Dictionary<string, List<KeyValuePair<string, long?>>>(); //單位:bytes
             foreach (string prefix in prefixDirId)
@@ -260,7 +260,7 @@ namespace TEAMModelOS.Controllers.XTest
 
                 }
             }
-            //資料整理
+            //資料整理 單位:Byte
             Dictionary<string, long> result = new Dictionary<string, long>();
             foreach (KeyValuePair<string, List<KeyValuePair<string, long?>>> rec in recordUrls)
             {