Browse Source

修改课纲资源节点数据类型

CrazyIter_Bin 4 years ago
parent
commit
92cc3ed313

+ 6 - 6
TEAMModelOS.SDK/Models/Cosmos/Common/Snode.cs

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

+ 0 - 1
TEAMModelOS/Services/Common/SyllabusService.cs

@@ -58,7 +58,6 @@ namespace TEAMModelOS.Services.Common
                 }
                 var node = new Tnode
                 {
-                    type = x.type,
                     title = x.title,
                     id = x.id,
                     pid = x.pid,