Bläddra i källkod

课纲数据结构调整

CrazyIter_Bin 4 år sedan
förälder
incheckning
768d6ac5de

+ 3 - 2
TEAMModelOS.SDK/Models/Cosmos/Common/Snode.cs

@@ -11,9 +11,10 @@ namespace TEAMModelOS.SDK.Models.Cosmos.Common
     public  class Snode
     public  class Snode
     {
     {
         /// <summary>
         /// <summary>
-        ///0 分支节点,1资源节点,2 试题 ,3试卷,4内容资源,5外部链接(只有link,和name),
+        ///0 分支节点,1资源节点,2 试题 ,3试卷,4,5外部链接(只有link,和name),
+        ///tree分支节点  rnode资源节点  item 试题 paper试卷 link外部链接 audio 音频,video 视频 ,doc文档,image图片,other 其他,res教材,thum缩略图
         /// </summary>
         /// </summary>
-        public int type { get; set; } = 0;
+        public string type { get; set; } 
         public string title { get; set; }
         public string title { get; set; }
 
 
     }
     }

+ 1 - 1
TEAMModelOS/Controllers/Syllabus/SyllabusController.cs

@@ -46,7 +46,7 @@ namespace TEAMModelOS.Controllers
                   "pid": "hbcn108515325535981568",
                   "pid": "hbcn108515325535981568",
                   "title": "第一章",
                   "title": "第一章",
                   "order": 0,
                   "order": 0,
-                  "type": 1,
+                  "type": tree,
                   "rnodes":[
                   "rnodes":[
                       {
                       {
                             "type":"item/paper/image/video/pptx.../link"//试题 ,试卷,内容资源,外部链接(只有link,和name)
                             "type":"item/paper/image/video/pptx.../link"//试题 ,试卷,内容资源,外部链接(只有link,和name)