INoteService.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. using GxPress.Common.Page;
  6. using GxPress.Request.App.Note;
  7. using GxPress.Request.Web;
  8. using GxPress.Result.App.Note;
  9. using GxPress.Result.Web;
  10. namespace GxPress.Service.Interface.Note
  11. {
  12. public interface INoteService : IService
  13. {
  14. Task<bool> InsertNoteAsync(NoteInRequest request);
  15. Task<PagedList<NotePageListRequest>> NotePageListAsync(NoteSearchPageListRequest request);
  16. /// <summary>
  17. /// 获取笔记详情
  18. /// </summary>
  19. /// <param name="id"></param>
  20. /// <param name="userId"></param>
  21. /// <returns></returns>
  22. Task<NoteDetailResult> GetNoteDetailAsync(int id, int userId);
  23. /// <summary>
  24. /// 修改笔记
  25. /// </summary>
  26. /// <param name="note"></param>
  27. /// <returns></returns>
  28. Task<bool> UpdateNoteAsync(Entity.Note.Note note);
  29. /// <summary>
  30. /// 删除笔记
  31. /// </summary>
  32. /// <param name="id"></param>
  33. /// <returns></returns>
  34. Task<bool> DeleteAsync(int id, int userId);
  35. /// <summary>
  36. ///查询个人摘录
  37. /// </summary>
  38. /// <param name="request"></param>
  39. /// <returns></returns>
  40. Task<PagedList<NoteUserExtractResult>> GetAllByUserId(NoteUserRequest request);
  41. /// <summary>
  42. /// 笔记没有文件夹分页
  43. /// </summary>
  44. /// <param name="request"></param>
  45. /// <returns></returns>
  46. Task<PagedList<NoteNotFolderPageResult>> GetNoteNotFolderPageResult(NoteSearchPageListRequest request);
  47. /// <summary>
  48. /// 获取笔记/话题草稿分页
  49. /// </summary>
  50. /// <param name="request"></param>
  51. /// <returns></returns>
  52. Task<PagedList<NoteNotFolderPageResult>> NoteTopicDraftPageListAsync(NoteSearchPageListRequest request);
  53. }
  54. }