IArticleGroupRepository.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using GxPress.Entity;
  4. using GxPress.Request.ArticleGroup;
  5. using Datory;
  6. using GxPress.Result.Article;
  7. using GxPress.Result.ArticleGroupUser;
  8. namespace GxPress.Repository.Interface
  9. {
  10. public interface IArticleGroupRepository : IRepository
  11. {
  12. Task<bool> ExistsAsync(int id);
  13. Task<bool> IsNameExistsAsync(string name);
  14. Task<int> InsertAsync(ArticleGroup processGroup);
  15. Task<ArticleGroupResult> GetAsync(int id);
  16. Task<bool> UpdateAsync(ArticleGroup processGroup);
  17. Task<IEnumerable<ArticleGroupUserListResult>> GetListAsync(int userId);
  18. /// <summary>
  19. /// ����
  20. /// </summary>
  21. /// <param name="request"></param>
  22. /// <returns></returns>
  23. Task<ArticleGroup> AddAsync(ArticleGroupAddRequest request);
  24. /// <summary>
  25. /// �޸�
  26. /// </summary>
  27. /// <param name="id"></param>
  28. /// <param name="request"></param>
  29. /// <returns></returns>
  30. Task<bool> UpdateAsync(int id, ArticleGroupAddRequest request);
  31. /// <summary>
  32. /// ɾ��
  33. /// </summary>
  34. /// <param name="id"></param>
  35. /// <returns></returns>
  36. Task<bool> DeleteAsync(int id);
  37. Task<ArticleGroup> GetArticleGroupAsync(int id);
  38. /// <summary>
  39. /// 根据样式获取导航
  40. /// </summary>
  41. /// <param name="styleCss"></param>
  42. /// <returns></returns>
  43. Task<ArticleGroup> GetArticleGroupAsync(string styleCss);
  44. }
  45. }