INoteService.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. }
  42. }