IThesaurusRepository.cs 996 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. using GxPress.Common.Page;
  6. using GxPress.Entity;
  7. using GxPress.Request.Thesaurus;
  8. using Datory;
  9. namespace GxPress.Repository.Interface
  10. {
  11. public interface IThesaurusRepository:IRepository
  12. {
  13. Task<bool> ExistsAsync(string account);
  14. Task<Thesaurus> GetAsync(int id);
  15. Task<bool> InsertAsync(Thesaurus thesaurus);
  16. Task<IEnumerable<Thesaurus>> GetPageListAsync(ThesaurusPageSearchRequest request);
  17. Task<int> GetCountAsync(ThesaurusPageSearchRequest request);
  18. Task<PagedList<Thesaurus>> GetPageList(ThesaurusPageSearchRequest request);
  19. Task<IEnumerable<Thesaurus>> GetTopListAsync(ThesaurusSearchRequest request);
  20. Task<bool> DeleteAsync(int id);
  21. Task<Thesaurus> GetDetailAsync(int id);
  22. Task<bool> UpdateAsync(int id,ThesaurusUpdateRequest request);
  23. Task<bool> DeleteAsync(List<int> ids);
  24. }
  25. }