李昊 4 years ago
parent
commit
a9cb1f5f41

+ 1 - 0
gx_api/GxPress/Model/GxPress.Request/App/Note/NoteInRequest.cs

@@ -60,5 +60,6 @@ namespace GxPress.Request.App.Note
         /// <value></value>
 
         public string ChapterId { get; set; }
+       
     }
 }

+ 1 - 1
gx_api/GxPress/Service/GxPress.Service.Implement/Note/NoteService.cs

@@ -100,7 +100,7 @@ namespace GxPress.Service.Implement.Note
                         item.File = StringUtils.RemoveDomain(item.File);
                     //添加笔记
                     var note = new Entity.Note.Note
-                    { Title = request.Title, Content = JsonConvert.SerializeObject(noteContent), HtmlContent = request.HtmlContent, UserId = request.UserId, IsDelete = false, IsTopic = request.IsTopic, FolderId = request.FolderId, MediaId = request.MediaId, MediaType = request.MediaType, CatalogId = request.CatalogId, ChapterId = request.ChapterId };
+                    { Title = request.Title, Content = JsonConvert.SerializeObject(noteContent), HtmlContent = request.HtmlContent, UserId = request.UserId, IsDelete = false, IsTopic = request.IsTopic, FolderId = request.FolderId, MediaId = request.MediaId, MediaType = request.MediaType, CatalogId = request.CatalogId, ChapterId = request.ChapterId};
                     var noteId = await _noteRepository.InsertAsync(note);
                     //添加中间件
                     var middleInsertTypes = new MiddleInsertTypeRequest

+ 2 - 2
gx_api/GxPress/Service/GxPress.Service.Implement/Topic/TopicService.Add.cs

@@ -93,8 +93,8 @@ namespace GxPress.Service.Implement.Topic
                             Content = request.Content,
                             UserId = request.UserId,
                             FolderId = request.FolderId,
-                            HtmlContent = request.HtmlContent
-
+                            HtmlContent = request.HtmlContent,
+                            IsTopic=true
                         };
                         await _noteService.InsertNoteAsync(noteRequest);
                         //设置默认共享文件夹