Skip to content

Commit

Permalink
Merge pull request #60 from kookmin-sw/feat/debug2
Browse files Browse the repository at this point in the history
fix: getter 수정
  • Loading branch information
KimChanJin97 authored May 10, 2024
2 parents c5f0d69 + 38b43d7 commit 0f87502
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public String getFilename() {
Integer faceShapeIdNum = extractFaceShapeIdNum(total);

Member member = findMemberById(memberId); // 영속 상태
member.getAnalysisInfo().setAnalysisInfoFull(analysisFull); // dirty
member.getAnalysisInfo().setAnalysisInfoShort(analysisShort);
member.getAnalysisInfo().setAnalysisFull(analysisFull); // dirty
member.getAnalysisInfo().setAnalysisShort(analysisShort);
member.getAnalysisInfo().setFaceShapeIdNum(faceShapeIdNum);

return new AnalysisInfoFullResponse(analysisFull);
Expand Down Expand Up @@ -127,19 +127,19 @@ private List<String> extractAnalysisInfoShort(AnalysisInfoTotal total) {

public AnalysisInfoFullShortResponse getAnalysisInfoFullShort(Long memberId) {
Member member = findMemberById(memberId);
Map<String, String> analysisInfoFull = member.getAnalysisInfo().getAnalysisInfoFull();
List<String> analysisInfoShort = member.getAnalysisInfo().getAnalysisInfoShort();
Map<String, String> analysisInfoFull = member.getAnalysisInfo().getAnalysisFull();
List<String> analysisInfoShort = member.getAnalysisInfo().getAnalysisShort();
return new AnalysisInfoFullShortResponse(analysisInfoFull, analysisInfoShort);
}

public AnalysisInfoFullResponse getAnalysisInfoFull(Long memberId) {
Member member = findMemberById(memberId);
return new AnalysisInfoFullResponse(member.getAnalysisInfo().getAnalysisInfoFull());
return new AnalysisInfoFullResponse(member.getAnalysisInfo().getAnalysisFull());
}

public AnalysisInfoShortResponse getAnalysisInfoShort(Long memberId) {
Member member = findMemberById(memberId);
return new AnalysisInfoShortResponse(member.getAnalysisInfo().getAnalysisInfoShort());
return new AnalysisInfoShortResponse(member.getAnalysisInfo().getAnalysisShort());
}

private Member findMemberById(Long memberId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ public SignupResponse signUp(SignUpRequest request) {

// 관상 분석 초기값
AnalysisInfo analysisInfo = AnalysisInfo.builder()
.analysisInfoFull(Map.of(
.analysisFull(Map.of(
INITIAL_ANALYSIS_NAME_EYE, INITIAL_ANALYSIS_DESCRIPTION,
INITIAL_ANALYSIS_NAME_FACE_SHAPE, INITIAL_ANALYSIS_DESCRIPTION,
INITIAL_ANALYSIS_NAME_LIPS, INITIAL_ANALYSIS_DESCRIPTION,
INITIAL_ANALYSIS_NAME_NOSE, INITIAL_ANALYSIS_DESCRIPTION,
INITIAL_ANALYSIS_NAME_EYEBROW, INITIAL_ANALYSIS_DESCRIPTION))
.analysisInfoShort(List.of(INITIAL_ANALYSIS_TAG))
.analysisShort(List.of(INITIAL_ANALYSIS_TAG))
.faceShapeIdNum(INITIAL_ANALYSIS_FACE_SHAPE_NUM)
.build();
analysisInfoRepository.save(analysisInfo);
Expand Down

0 comments on commit 0f87502

Please sign in to comment.