Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📋 상세 설명
탈퇴하는 사람이 MASTER이면 group을 삭제해야 함
memberId 기준으로 groupMember 통해 groupId 조회
groupId 기준으로 video 조회하여 삭제 (S3 배치 작업 추가 필요)
groupId 기준으로 cctv 조회하여 정보 목록 확인
cctv 목록을 순회하여 kvs 채널 삭제
cctv 상태 shadow에서 kvsChannelDeleteRequested 필드 true로 pub -> (iot 기기 삭제는 모바일에서)
groupMember 삭제
group 삭제
member 삭제
(MASTER iot 기기 삭제 모바일에서 진행하기)
그렇지 않으면 groupMember와 member만 삭제
(PARTICIPANT iot 기기 삭제 모바일에서 진행하기)
📸 스크린샷
📚 자료