ITispSpotUserService.cs 1.3 KB

1234567891011121314151617181920212223242526
  1. using Ropin.Inspection.Model.SearchModel;
  2. using Ropin.Inspection.Model.ViewModel;
  3. using Ropin.Inspection.Repository;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Linq.Expressions;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace Ropin.Inspection.Service.Interface
  11. {
  12. public interface ITispSpotUserService : IBaseService<TispSpotUserViewModel>, IBaseServiceById<TispSpotUserViewModel, Guid>
  13. {
  14. Task<IEnumerable<TispSpotUserViewModel>> GetAllAsync();
  15. Task<IEnumerable<TispSpotUserViewModel>> GetByConditionAsync(Expression<Func<TispSpotUserViewModel, bool>> expression);
  16. Task UpdateAsync(Guid id, TispSpotUserUpdateViewModel updateModel);
  17. Task<IEnumerable<TispSpotUserViewModel>> GetBySpotIdAsync(Guid spotId);
  18. Task<IEnumerable<TispUserStoreRouteSpotViewModel>> GetByUserIdAsync(Guid userId);
  19. Task<IEnumerable<TispSpotUserViewModel>> GetAsyncByPage(int pageSize, int pageIndex);
  20. Task<IEnumerable<TispSpotUsersViewModel>> GetSpotUsersAsyncByPage(TispSpotUserSearchModel searchViewModel);
  21. Task CreateSpotsUsersAsync(TispSpotUserCreateViewModel viewModel);
  22. Task CreateSpotsUserAsync(TispSpotUserCreateViewModel viewModel);
  23. Task<IEnumerable<TispSpotUsersViewModel>> GetSpotUsersAsyncByPage(int pageSize, int pageIndex);
  24. }
  25. }