IMediaService.cs 940 B

12345678910111213141516171819202122232425262728293031
  1. using System.Threading.Tasks;
  2. using GxPress.Request.Media;
  3. using GxPress.Result.Media;
  4. namespace GxPress.Service.Interface.Media
  5. {
  6. public interface IMediaService : IService
  7. {
  8. Task<bool> InsertAsync(MediaResult result);
  9. Task<MediaResult> GetAsync(int id);
  10. /// <summary>
  11. /// 获取书籍详情
  12. /// </summary>
  13. /// <param name="id"></param>
  14. /// <returns></returns>
  15. Task<BookMediaResult> GetBookMediaResultAsync(int id);
  16. /// <summary>
  17. /// 获取章节内容
  18. /// </summary>
  19. /// <param name="request"></param>
  20. /// <returns></returns>
  21. Task<string> GetBookMediaContentResultAsync(BookCatalogRequest request);
  22. /// <summary>
  23. /// 获取视频详情
  24. /// </summary>
  25. /// <param name="id"></param>
  26. /// <returns></returns>
  27. Task<VideoMediaResult> GetVideoMediaResultAsync(int id);
  28. }
  29. }