package com.red.circle.console.app.service.app.user;

import com.red.circle.framework.core.asserts.ResponseAssert;
import com.red.circle.other.inner.model.dto.user.UserRegisterInfoDTO;
import com.red.circle.other.inner.endpoint.user.user.UserProfileClient;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户注册信息 服务实现类
 * </p>
 *
 * @author pengliang
 * @since 2019-11-08
 */

@Service
@RequiredArgsConstructor
public class UserRegisterInfoServiceImpl implements UserRegisterInfoService {

  private final UserProfileClient userProfileClient;

  @Override
  public UserRegisterInfoDTO getUserRegisterInfo(Long userId) {
    return ResponseAssert.requiredSuccess(userProfileClient.getRegisterInfo(userId));
  }
}
