李昊 4 年之前
父節點
當前提交
be8554a982
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      gx_api/GxPress/Service/GxPress.Service.Implement/Middle/MiddleService.cs

+ 14 - 0
gx_api/GxPress/Service/GxPress.Service.Implement/Middle/MiddleService.cs

@@ -841,6 +841,20 @@ namespace GxPress.Service.Implement.Middle
             var connection = database.GetConnection();
             var middles = await connection.QueryAsync<Entity.Middle.Middle>(sql);
             List<MiddleSearchFolderResult> result = new List<MiddleSearchFolderResult>();
+            if (request.TypeId == AllTypeConst.TopicNote.GetHashCode())
+            {
+                result.Add(new MiddleSearchFolderResult
+                {
+                    Name = "草稿箱",
+                    Id = 0,
+                    IsDisable = false,
+                    RoleId = 1,
+                    IsFolder = false,
+                    IsTop = true,
+                    FileCount = await _noteRepository.GetDraftCountAsync(request.UserId, true),
+                    IsSystemDefault = true
+                });
+            }
             foreach (var item in middles)
             {
                 MiddleSearchFolderResult middleSearchFolderResult = new MiddleSearchFolderResult