Skip to content

Commit

Permalink
Merge pull request #89 from kookmin-sw/feat/analysis-fix
Browse files Browse the repository at this point in the history
fix: analysis response 수정
  • Loading branch information
KimChanJin97 authored May 22, 2024
2 parents 1d137c8 + e615ed2 commit b932cb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class AnalysisInfoController {

// 관상 분석할 때 사용
@PutMapping("/analysis-info")
public ResponseEntity<AnalysisInfoFullResponse> analyze(
public ResponseEntity<AnalysisInfoFullShortResponse> analyze(
@RequestPart("origin") MultipartFile origin,
@AuthMember Long memberId
) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class AnalysisInfoService {


@Transactional
public AnalysisInfoFullResponse analyze(MultipartFile origin, Long memberId) throws IOException {
public AnalysisInfoFullShortResponse analyze(MultipartFile origin, Long memberId) throws IOException {
// convert MultipartFile into ByteArrayResource
ByteArrayResource resource = new ByteArrayResource(origin.getBytes()) {
@Override
Expand Down Expand Up @@ -88,10 +88,10 @@ public String getFilename() {

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

return new AnalysisInfoFullResponse(analysisFull);
return new AnalysisInfoFullShortResponse(analysisFull, analysisShort);
}

private Map<String, String> extractAnalysisInfoFull(AnalysisInfoTotal total) {
Expand Down

0 comments on commit b932cb3

Please sign in to comment.