李昊 4 年之前
父节点
当前提交
49f3cb4fa3

+ 5 - 0
gx_api/GxPress/Model/GxPress.Result/App/Topic/TopicDetailResult.cs

@@ -100,5 +100,10 @@ namespace GxPress.Result.App.Topic
         /// 是否点赞
         /// </summary>
         public bool IsPraise { get; set; }
+        /// <summary>
+        /// 头像
+        /// </summary>
+        /// <value></value>
+        public string AvatarUrl { get; set; }
     }
 }

+ 1 - 0
gx_api/GxPress/Service/GxPress.Service.Implement/Topic/TopicService.Detail.cs

@@ -73,6 +73,7 @@ namespace GxPress.Service.Implement.Topic
             result.IsPraise = await _analyzeService.ExistsAsync(analyzeRequest);
             var praisePageSearchRequest = new PraisePageSearchRequest { SourceId = request.Id, TypeValue = GxPress.EnumConst.AllTypeConst.Topic.GetHashCode(), Page = 1, PerPage = 3 };
             result.TopicPraisePagedList = await _analyzeService.GetPraisePageAsync(praisePageSearchRequest);
+            result.AvatarUrl = StringUtils.AddDomainMin(user.AvatarUrl);
             return result;
         }