using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using GxPress.Common.Page; using GxPress.Request.App.Middle; using GxPress.Request.Notice; using GxPress.Result.App.Middle; namespace GxPress.Service.Interface.Middle { public interface IMiddleService : IService { /// /// 添加文件夹 /// /// /// Task InsertAsync(MiddleInsertRequest request); /// /// 修改文件夹名称 /// /// /// Task UpdateNameAsync(MiddleUpdateNameRequest request); Task InsertAsync(MiddleInsertTypeRequest request); /// /// 排序 /// /// /// Task MiddleSortAsync(MiddleSortRequest request); /// /// 设置置顶 /// /// /// Task SetTopAsync(int id); Task DeleteAsync(NoticeDeRequest request); Task RecoverDeleteAsync(NoticeDeRequest request); Task AddOrUpdateAsync(MiddleInsertTypeRequest request); Task SetMove(MiddleMoveRequest request); /// /// 修改文件夹名称 /// /// /// Task UpdateFolderNameAsync(MiddleFolderNameRequest request); /// /// 查询文件夹 /// /// /// Task> SearchFolderAsync(MiddleSearchFolderRequest request); /// /// 修改权限 /// /// /// Task UpdateFolderRoleAsync(MiddleUpdateFolderRoleRequest request); /// /// 根据文件夹ID获取文件夹信息 /// /// /// Task GetFolderInfo(int middleId); /// /// 获取默认的共享文件夹范围 /// /// /// Task GetEnjoyDefaultAsync(int userId, int folderType); /// /// 获取话题 笔记共享范围文件夹 /// /// /// Task> SearchNoteFolderAsync(MiddleSearchFolderRequest request); /// /// 恢复全部 /// /// 文件夹类型 1 通知 2话题 3 收藏 4笔记 5 普通站内信 6匿名站内信 7小组 /// Task RecoverAllAsync(int folderType, int userId); /// /// 删除全部 /// /// 文件夹类型 1 通知 2话题 3 收藏 4笔记 5 普通站内信 6匿名站内信 7小组 /// /// Task DeleteAllAsync(int folderType, int userId); /// /// 获取话题最近使用的文件夹 /// /// /// Task> GetLatelyNoteFolderAsync(int userId); /// /// 查询文件夹包含父级 /// /// /// Task SearchFolderAndParentIdAsync(MiddleSearchFolderRequest request); /// /// 获取话题最近使用的文件夹 /// /// /// Task> GetLatelyTopicFolderAsync(int userId); /// /// 清空草稿箱 /// /// /// /// Task ClearDraftAsync(int userId, int typeValue); } }