IAppHomePageService.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using GxPress.Common.Page;
  4. using GxPress.Request.ArticleGroup;
  5. using GxPress.Request.Media;
  6. using GxPress.Request.Navigation;
  7. using GxPress.Request.TeacherRequest;
  8. using GxPress.Result.Media;
  9. using GxPress.Result.Navigation;
  10. using GxPress.Result.SystemLabel;
  11. using GxPress.Result.Teacher;
  12. namespace GxPress.Service.Interface.AppHomePage
  13. {
  14. public interface IAppHomePageService : IService
  15. {
  16. /// <summary>
  17. /// 大咖讲座
  18. /// </summary>
  19. /// <param name="request"></param>
  20. /// <returns></returns>
  21. Task<List<AppLabelResult<MediaCathedraResult>>> GetMediasByTeacherAsync(ArticleGroupRequest request);
  22. /// <summary>
  23. /// 大咖讲座分页
  24. /// </summary>
  25. /// <returns></returns>
  26. Task<PagedList<MediaCathedraResult>> MediaCathedraResult(ArticleGroupRequest request);
  27. /// <summary>
  28. /// 每日好文
  29. /// </summary>
  30. /// <param name="request"></param>
  31. /// <returns></returns>
  32. Task<PagedList<MediaCathedraResult>> GetDayGoodTextAsync(MediaSearchRequest request);
  33. /// <summary>
  34. /// 根据IDs
  35. /// </summary>
  36. /// <returns></returns>
  37. Task<IEnumerable<MediaCathedraResult>> GetMediaByLableIdsAsync(MediaIdsRequest request);
  38. /// 名师
  39. /// </summary>
  40. /// <param name="request"></param>
  41. /// <returns></returns>
  42. Task<PagedList<TeacherResult>> GetTeacherAsync(TeacherRequest request);
  43. /// <summary>
  44. /// 根据IDs
  45. /// </summary>
  46. /// <returns></returns>
  47. Task<PagedList<MediaCathedraResult>> GetMediaByLableIdAsync(MediaLableIdRequest request);
  48. /// <summary>
  49. /// 书城
  50. /// </summary>
  51. /// <param name="request"></param>
  52. /// <returns></returns>
  53. Task<List<AppLabelResult<MediaCathedraResult>>> GetBookCityAsync(ArticleGroupRequest request);
  54. /// <summary>
  55. /// 获取每日微课
  56. /// </summary>
  57. /// <param name="request"></param>
  58. /// <returns></returns>
  59. Task<PagedList<MediaCathedraResult>> GetDayWeBookAsync(MediaDayWeBookRequest request);
  60. /// <summary>
  61. /// 导航内容分页
  62. /// </summary>
  63. /// <returns></returns>
  64. Task<PagedList<MediaCathedraResult>> GetContentNavigationAsync(MediaContentNavigationRequest request);
  65. /// <summary>
  66. /// 获取搜索作者
  67. /// </summary>
  68. /// <returns></returns>
  69. Task<IEnumerable<NavigationSearchTeacherResult>> GetNavigationSearchResultAysnc(int categoryId);
  70. /// <summary>
  71. /// 获取出版社
  72. /// </summary>
  73. /// <param name="categoryId"></param>
  74. /// <returns></returns>
  75. Task<IEnumerable<string>> GetNavigationPressAsync(int categoryId);
  76. /// <summary>
  77. /// 获取年份数据
  78. /// </summary>
  79. /// <param name="request"></param>
  80. /// <returns></returns>
  81. Task<IEnumerable<NavigationYearResult>> GetNavigationYearResult(NavigationYearRequest request);
  82. }
  83. }