李昊 4 年之前
父節點
當前提交
81c4470c83

+ 5 - 0
gx_api/GxPress/Model/GxPress.Result/ArticleGroupUser/ArticleGroupUserListResult.cs

@@ -26,5 +26,10 @@ namespace GxPress.Result.ArticleGroupUser
         /// 频道名称
         /// </summary>
         public string ArticleGroupName { get; set; }
+        /// <summary>
+        /// 样式
+        /// </summary>
+        /// <value></value>
+        public string StyleCss { get; set; }
     }
 }

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

@@ -489,5 +489,10 @@ namespace GxPress.Result.Media
         /// </summary>
         /// <value></value>
         public string Duration { get; set; }
+        /// <summary>
+        /// 收藏数量
+        /// </summary>
+        /// <value></value>
+        public int CollectCount { get; set; }
     }
 }

+ 6 - 1
gx_api/GxPress/Service/GxPress.Service.Implement/AppHomePage/AppHomePageService.cs

@@ -45,7 +45,12 @@ namespace GxPress.Service.Implement.AppHomePage
         /// <returns></returns>
         public async Task<IEnumerable<MediaCathedraResult>> MediaCathedraResult(ArticleGroupRequest request)
         {
-            return await mediaRepository.GetMediasByTeacherAsync(request);
+            var result = await mediaRepository.GetMediasByTeacherAsync(request);
+            foreach (var item in result)
+            {
+                item.ImageUrls = Common.Tools.StringUtils.AddDomain(item.ImageUrls);
+            }
+            return result;
         }
     }
 }