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);
}
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);
}
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);
}
Aggregations