INavigationRepository.cs 809 B

123456789101112131415161718192021222324252627
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using Datory;
  4. using GxPress.Request.Navigation;
  5. using GxPress.Result.Navigation;
  6. namespace GxPress.Repository.Interface.Navigation
  7. {
  8. public interface INavigationRepository : IRepository
  9. {
  10. Task<Entity.Navigations.Navigation> GetAsync(int id);
  11. Task<bool> DeleteAsync(int id);
  12. Task<int> InsertAsync(Entity.Navigations.Navigation note);
  13. Task<bool> UpdateAsync(NavigationUpRequest request);
  14. Task<bool> UpdateAsync(SqlKata.Query query);
  15. Task<IEnumerable<NavigationResult>> GetAllAsync(int terminal);
  16. /// <summary>
  17. /// 获取导航栏数据
  18. /// </summary>
  19. /// <returns></returns>
  20. Task<MiddleLableResult> GetNavigationResults(int navigationId);
  21. }
  22. }