|
@@ -821,6 +821,21 @@ namespace GxPress.Service.Implement.Middle
|
|
|
return result;
|
|
|
}
|
|
|
/// <summary>
|
|
|
+ /// 根据类型搜索文件夹
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="request"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public async Task<IEnumerable<Entity.Middle.Middle>> GetSearchFolderResult(MiddleSearchFolderRequest request)
|
|
|
+ {
|
|
|
+ var query = Q.NewQuery();
|
|
|
+ query.Where(nameof(Entity.Middle.Middle.FolderType), request.TypeId);
|
|
|
+ query.Where(query.WhereLike(nameof(Entity.Middle.Middle.FolderName), $"%{request.KeyWord}%"));
|
|
|
+ query.Where(nameof(Entity.Middle.Middle.UserId), request.UserId);
|
|
|
+ query.OrderByDesc(nameof(Entity.Middle.Middle.IsTop), nameof(Entity.Middle.Middle.LastModifiedDate));
|
|
|
+ return await _middleRepository.GetAllAsync(query);
|
|
|
+
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
/// 获取话题 笔记共享范围文件夹
|
|
|
/// </summary>
|
|
|
/// <param name="request"></param>
|