IMediaRepository.cs 972 B

123456789101112131415161718192021222324252627282930313233
  1. using System.Threading.Tasks;
  2. using Datory;
  3. using GxPress.Common.Page;
  4. using GxPress.Request.Media;
  5. using GxPress.Result.Media;
  6. namespace GxPress.Repository.Interface.Media
  7. {
  8. public interface IMediaRepository:IRepository
  9. {
  10. Task<MediaResult> GetAsync(int id);
  11. /// <summary>
  12. /// 删除
  13. /// </summary>
  14. /// <param name="id"></param>
  15. /// <returns></returns>
  16. Task<bool> DeleteAsync(int id);
  17. /// <summary>
  18. /// 添加媒体
  19. /// </summary>
  20. /// <param name="result"></param>
  21. /// <returns></returns>
  22. Task<bool> InsertAsync(MediaResult result);
  23. Task<bool> UpdateAsync(MediaResult result);
  24. Task<bool> UpdateAsync(SqlKata.Query query);
  25. Task<PagedList<Entity.tede2.Media.Media>> GetAllAsync(MediaSearchRequest request);
  26. Task<int> CountAsync(string beginTime, string endTiem);
  27. Task<int> CountAsync(SqlKata.Query query);
  28. }
  29. }