IAppVersionRepository.cs 929 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. using GxPress.Entity;
  6. using GxPress.Request.AppVersion;
  7. using Datory;
  8. namespace GxPress.Repository.Interface
  9. {
  10. public interface IAppVersionRepository : IRepository
  11. {
  12. Task<AppVersion> GetAsync(int id);
  13. Task<AppVersion> GetAppVersionAsync(AppVersionSearchRequest request);
  14. Task<int> InsertAsync(AppVersion appVersion);
  15. Task<bool> UpdateAsync(AppVersion appVersion);
  16. Task<IEnumerable<AppVersion>> GetAppVersionAsync();
  17. /// <summary>
  18. /// 删除
  19. /// </summary>
  20. /// <param name="id"></param>
  21. /// <returns></returns>
  22. Task<bool> DeleteAsync(int id);
  23. /// <summary>
  24. /// 获取最新的移动端信息
  25. /// </summary>
  26. /// <returns></returns>
  27. Task<IEnumerable<AppVersion>> GetAppVersionsAsync();
  28. }
  29. }