IFeedbackRepository.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.Entity;
  7. using GxPress.Request.Admin;
  8. using GxPress.Request.Feedback;
  9. using GxPress.Result.Admin;
  10. using GxPress.Result.Feedback;
  11. using Datory;
  12. namespace GxPress.Repository.Interface
  13. {
  14. public interface IFeedbackRepository:IRepository
  15. {
  16. /// <summary>
  17. /// 意见反馈分页
  18. /// </summary>
  19. /// <param name="request"></param>
  20. /// <returns></returns>
  21. Task<PagedList<FeedbackPageResult>> GetPagedList(FeedbackPageRequest request);
  22. /// <summary>
  23. /// 根据ID查询意见
  24. /// </summary>
  25. /// <param name="id"></param>
  26. /// <returns></returns>
  27. Task<Feedback> GetAsync(int id);
  28. /// <summary>
  29. /// 添加反馈意见
  30. /// </summary>
  31. /// <param name="feedback"></param>
  32. /// <returns></returns>
  33. Task<int> InsertAsync(Feedback feedback);
  34. /// <summary>
  35. /// 删除
  36. /// </summary>
  37. /// <param name="id"></param>
  38. /// <returns></returns>
  39. Task<bool> DeleteAsync(int id);
  40. }
  41. }