Search in sources :

Example 1 with UserQuery

use of com.easy.cloud.user.base.pojo.query.UserQuery in project dq-easy-cloud by dq-open-cloud.

the class UserServiceImpl method loginByEmailAndPassword.

@Override
public EcBaseServiceResult loginByEmailAndPassword(UserQuery userQuery) {
    UserQuery userQueryOfFilter = new UserQuery();
    userQueryOfFilter.setEmail(userQuery.getEmail());
    userQueryOfFilter.setPassword(userQuery.getPassword());
    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)

Example 2 with UserQuery

use of com.easy.cloud.user.base.pojo.query.UserQuery in project dq-easy-cloud by dq-open-cloud.

the class UserServiceImpl method loginByUserNameAndPassword.

@Override
public EcBaseServiceResult loginByUserNameAndPassword(UserQuery userQuery) {
    UserQuery userQueryOfFilter = new UserQuery();
    userQueryOfFilter.setUserName(userQuery.getUserName());
    userQueryOfFilter.setPassword(userQuery.getPassword());
    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)

Example 3 with UserQuery

use of com.easy.cloud.user.base.pojo.query.UserQuery 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)3 UserQuery (com.easy.cloud.user.base.pojo.query.UserQuery)3