INoteRepository.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. using Datory;
  6. using GxPress.Common.Page;
  7. using GxPress.Request.App.Note;
  8. using GxPress.Result.App.Note;
  9. namespace GxPress.Repository.Interface.Note
  10. {
  11. public interface INoteRepository : IRepository
  12. {
  13. /// <summary>
  14. /// 获取笔记
  15. /// </summary>
  16. /// <param name="id"></param>
  17. /// <returns></returns>
  18. Task<Entity.Note.Note> GetAsync(int id);
  19. /// <summary>
  20. /// 添加笔记
  21. /// </summary>
  22. /// <param name="note"></param>
  23. /// <returns></returns>
  24. Task<int> InsertAsync(Entity.Note.Note note);
  25. /// <summary>
  26. /// 修改笔记
  27. /// </summary>
  28. /// <param name="note"></param>
  29. /// <returns></returns>
  30. Task<bool> UpdateAsync(Entity.Note.Note note);
  31. /// <summary>
  32. /// 获取笔记分页
  33. /// </summary>
  34. /// <param name="request"></param>
  35. /// <returns></returns>
  36. Task<PagedList<NotePageListRequest>> NotePageListAsync(NoteSearchPageListRequest request);
  37. Task<bool> DeleteAsync(SqlKata.Query query);
  38. Task<bool> DeleteAsync(int id);
  39. Task<bool> UpdateAsync(SqlKata.Query query);
  40. }
  41. }