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