李昊 4 lat temu
rodzic
commit
6f3120daab

+ 6 - 2
gx_api/GxPress/Model/GxPress.Entity/tede2/Group/GroupCategroy.cs

@@ -20,7 +20,11 @@ namespace GxPress.Entity.tede2.Group
         /// <value></value>
         [DataColumn]
         public int ParentId { get; set; }
-
-
+        /// <summary>
+        /// 是否可见
+        /// </summary>
+        /// <value></value>
+        [DataColumn]
+        public bool IsShow { get; set; }
     }
 }

+ 5 - 0
gx_api/GxPress/Model/GxPress.Result/Media/MediaResult.cs

@@ -539,5 +539,10 @@ namespace GxPress.Result.Media
         /// Json内容
         /// </summary>
         public string Blocks { get; set; }
+        /// <summary>
+        /// 类型
+        /// </summary>
+        /// <value></value>
+        public int MediaType { get; set; }
     }
 }

+ 1 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/Media/MediaRepository.cs

@@ -656,7 +656,7 @@ namespace GxPress.Repository.Implement.Media
         public async Task<SkillInfo> GetRandomDaySkillAsync()
         {
             var sql = $@"SELECT 
-                            Id,Blocks
+                            Id,Blocks,MediaType
                         FROM
                             tede_media where IsExercises=1 and MediaType={AllTypeConst.Article.GetHashCode()}
                         ORDER BY RAND() LIMIT 1";