package com.kamco.cd.kamcoback.user.service;

import com.kamco.cd.kamcoback.members.dto.MembersDto;
import com.kamco.cd.kamcoback.postgres.core.MembersCoreService;
import jakarta.validation.constraints.NotNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@RequiredArgsConstructor
@Service
@Transactional(readOnly = true)
public class UserInfoService {

  private final MembersCoreService membersCoreService;

  /**
   * 회원정보 조회 (단건 ) by uuid
   *
   * @param uuid
   * @return
   */
  public MembersDto.EntityData getUserInfoByUuid(@NotNull String uuid) {
    return membersCoreService.getUserInfoByUuid(uuid);
  }
}
