李昊 4 年之前
父節點
當前提交
0d40bcc7fb

+ 5 - 0
gx_api/GxPress/Model/GxPress.Result/App/Middle/MiddleSearchFolderResult.cs

@@ -53,6 +53,11 @@ namespace GxPress.Result.App.Middle
         /// </summary>
         /// <value></value>
         public int ParentId { get; set; }
+        /// <summary>
+        /// 是否草稿箱
+        /// </summary>
+        /// <value></value>
+        public bool IsDraft { get; set; }
     }
     /// <summary>
     /// 

+ 2 - 1
gx_api/GxPress/Service/GxPress.Service.Implement/Middle/MiddleService.cs

@@ -852,7 +852,8 @@ namespace GxPress.Service.Implement.Middle
                     IsFolder = false,
                     IsTop = true,
                     FileCount = await _noteRepository.GetDraftCountAsync(request.UserId, true),
-                    IsSystemDefault = true
+                    IsSystemDefault = true,
+                    IsDraft = true
                 });
             }
             foreach (var item in middles)