ITispSpotUserRepository.cs 1.1 KB

1234567891011121314151617181920212223
  1. using Ropin.Inspection.Model.Entities;
  2. using Ropin.Inspection.Model.SearchModel;
  3. using Ropin.Inspection.Model.ViewModel;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace Ropin.Inspection.Repository.Interface
  10. {
  11. public interface ITispSpotUserRepository : IRepositoryBase<TISP_SpotUser>, IRepositoryBaseById<TISP_SpotUser, Guid>
  12. {
  13. Task<IEnumerable<TispSpotUserViewModel>> GetBySpotIdAsync(Guid spotId);
  14. Task<IEnumerable<TispUserStoreRouteSpotViewModel>> GetByUserIdAsync(Guid userId);
  15. Task<IEnumerable<TispSpotUserViewModel>> GetAsyncByPage(int pageSize, int pageIndex);
  16. Task<IEnumerable<TispSpotUsersViewModel>> GetGroupBySpotAsyncByPage(int pageSize, int pageIndex);
  17. Task<PageData<TispSpotUsersViewModel>> GetGroupBySpotAsyncByPage(TispSpotUserSearchModel searchViewModel);
  18. Task<int> DeleteBySpotIdAsync(Guid spotId);
  19. Task<int> DeleteByUserIdAsync(Guid userId);
  20. Task<int> GetBySpotIdAndUserIdAsync(Guid spotId, Guid userId);
  21. }
  22. }