2020-06-16 19:19:26 +07:00
|
|
|
package com.cubetiqs.demo.service;
|
|
|
|
|
|
|
|
import com.cubetiqs.demo.domain.UserEntity;
|
2020-06-22 20:04:51 +07:00
|
|
|
import com.cubetiqs.demo.domain.view.UserView;
|
|
|
|
import org.springframework.data.domain.Page;
|
|
|
|
import org.springframework.data.domain.Pageable;
|
2020-06-16 19:19:26 +07:00
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
@Service
|
2020-06-17 17:54:21 +07:00
|
|
|
public interface UserService extends BaseService<UserEntity, Long> {
|
2020-06-22 20:04:51 +07:00
|
|
|
UserEntity findByEmail(String email) throws UserNotFoundException;
|
|
|
|
Page<UserEntity> searchByEmail(String email, Pageable pageable);
|
|
|
|
Page<UserView> searchByEmailAsView(String email, Pageable pageable);
|
2020-06-16 19:19:26 +07:00
|
|
|
}
|