李昊 4 年之前
父节点
当前提交
3ec5dc854b

+ 5 - 0
gx_api/GxPress/Model/GxPress.Result/App/Note/NoteResult.cs

@@ -36,6 +36,11 @@ namespace GxPress.Result.App.Note
         /// <value></value>
         public string UserName { get; set; }
         /// <summary>
+        /// 用户Id
+        /// </summary>
+        /// <value></value>
+        public string UserId { get; set; }
+        /// <summary>
         /// 头像
         /// </summary>
         /// <value></value>

+ 1 - 0
gx_api/GxPress/Repository/GxPress.Repository.Implement/Note/NoteRepository.cs

@@ -436,6 +436,7 @@ namespace GxPress.Repository.Implement.Note
                                 a.Content,
                                 a.HtmlContent,
                                 a.CreatedDate,
+                                b.Id as UserId,
                                 b.Name,
                                 b.AvatarUrl,
                                 c.Id,