ITopicCommentRepository.cs 1.4 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.Request.App.TopicComment;
  7. using GxPress.Result.App.TopicComment;
  8. using Datory;
  9. namespace GxPress.Repository.Interface
  10. {
  11. public interface ITopicCommentRepository : IRepository
  12. {
  13. /// <summary>
  14. /// 添加文章评论
  15. /// </summary>
  16. /// <param name="request"></param>
  17. /// <returns></returns>
  18. Task<int> TopicCommentInAsync(TopicCommentInRequest request);
  19. Task<PagedList<TopicCommentPageResult>> GetPagedList(TopicCommentSearchPageRequest request);
  20. Task<int> GetCountAsync(int articleId);
  21. Task<IEnumerable<TopicCommentPageResult>> GetPageListAsync(TopicCommentSearchPageRequest request);
  22. Task<List<TopicCommentReplyResult>> GetTopicCommentReplyResultByPid(int pid, List<TopicCommentReplyResult> TopicCommentReplyResults);
  23. /// <summary>
  24. /// 删除评论
  25. /// </summary>
  26. /// <param name="request"></param>
  27. /// <returns></returns>
  28. Task<bool> DeleteTopicCommentAsync(TopicCommentDeleteRequest request);
  29. /// <summary>
  30. /// 获取文章的评论条数
  31. /// </summary>
  32. /// <param name="TopicId"></param>
  33. /// <returns></returns>
  34. Task<int> GetTopicCommentCountAsync(int TopicId);
  35. Task<int> CountAsync(SqlKata.Query query);
  36. }
  37. }