backend-demo-tn/src/main/java/com/cubetiqs/demo/service/UserService.java

15 lines
562 B
Java
Raw Normal View History

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
}