using System.Collections.Generic; using System.Threading.Tasks; using Datory; using GxPress.Common.Page; using GxPress.Request.ArticleGroup; using GxPress.Request.Media; using GxPress.Result.Media; namespace GxPress.Repository.Interface.Media { public interface IMediaRepository : IRepository { Task GetAsync(int id); Task GetAsync(string autoNumber); /// /// 删除 /// /// /// Task DeleteAsync(int id); /// /// 添加媒体 /// /// /// Task InsertAsync(MediaResult result); Task UpdateAsync(MediaResult result); Task UpdateAsync(SqlKata.Query query); Task> GetAllAsync(MediaSearchRequest request); Task CountAsync(string beginTime, string endTiem); Task CountAsync(SqlKata.Query query); /// /// 获取书籍 /// /// /// Task GetBookMediaResultAsync(int mediaId); /// /// 获取书籍 /// /// /// Task GetVideoMediaResultAsync(int mediaId); Task> GetNavigationMediaResults(IEnumerable mediaLables, int pageSize = 10); /// /// 猜你喜欢 /// /// /// Task> GetlikeMediaResults(); /// /// 推荐 /// /// /// Task> GetRecommendMediaResults(); /// /// 排行榜 /// /// /// Task> GetRankingListResults(RankingListRequest request); /// /// 获取笔记摘录媒体 /// /// /// Task GetAsync(SqlKata.Query query); /// /// 大咖讲座 /// /// Task> GetMediasByTeacherAsync(ArticleGroupRequest request); /// /// 大咖讲座 /// /// Task GetMediasByTeacherCountAsync(ArticleGroupRequest request); /// /// 根据IDs /// /// Task> GetMediaByLableIdsAsync(MediaIdsRequest request); } }