Search in sources :

Example 6 with UserEntity

use of com.easy.cloud.user.base.pojo.entity.UserEntity in project dq-easy-cloud by dq-open-cloud.

the class UserServiceImpl method findByEmail.

@Override
public EcBaseServiceResult findByEmail(UserQuery userQuery) {
    UserQuery userQueryOfFilter = new UserQuery();
    userQueryOfFilter.setEmail(userQuery.getEmail());
    UserEntity userEntity = userRepository.findUserByQuery(userQueryOfFilter);
    return EcBaseServiceResult.newInstanceOfSucResult(userEntity);
}
Also used : UserQuery(com.easy.cloud.user.base.pojo.query.UserQuery) UserEntity(com.easy.cloud.user.base.pojo.entity.UserEntity)

Aggregations

UserEntity (com.easy.cloud.user.base.pojo.entity.UserEntity)6 UserQuery (com.easy.cloud.user.base.pojo.query.UserQuery)3 EcBaseServiceResult (com.easy.cloud.core.basic.pojo.dto.EcBaseServiceResult)2 Transactional (org.springframework.transaction.annotation.Transactional)2 Test (org.junit.Test)1 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)1