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 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); } }