|
@@ -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
|