using System.Collections.Generic; using System.Threading.Tasks; using Datory; using GxPress.Common.Page; 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); } }