Skip to content

Commit

Permalink
Merge pull request #91 from Na-o-man/feature/90/detect_face_join_group
Browse files Browse the repository at this point in the history
[Feat] 기존 서비스 공유그룹 참여 서비스 로직에서 새로 참여한 맴버의 얼굴을 인식하는 로직 추가
  • Loading branch information
bflykky authored Aug 11, 2024
2 parents 4a6840b + 652dacd commit 67404ce
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.umc.naoman.domain.shareGroup.service;

import com.umc.naoman.domain.member.entity.Member;
import com.umc.naoman.domain.photo.service.FaceDetectionService;
import com.umc.naoman.domain.shareGroup.converter.ShareGroupConverter;
import com.umc.naoman.domain.shareGroup.dto.ShareGroupRequest;
import com.umc.naoman.domain.shareGroup.entity.Profile;
Expand Down Expand Up @@ -30,6 +31,7 @@ public class ShareGroupServiceImpl implements ShareGroupService {
private final ProfileRepository profileRepository;
private final ShareGroupConverter shareGroupConverter;
private final OpenAiService openAiService;
private final FaceDetectionService faceDetectionService;

@Transactional
@Override
Expand Down Expand Up @@ -87,6 +89,9 @@ public ShareGroup joinShareGroup(Long shareGroupId, Long profileId, Member membe
profile.setInfo(member);
profileRepository.save(profile);

//자신의 얼굴을 기존에 올라온 사진에서 찾아서 태그해주는 로직(비동기)
faceDetectionService.detectFaceJoinShareGroup(member.getId(), shareGroupId);

return shareGroup;
}

Expand Down

0 comments on commit 67404ce

Please sign in to comment.