Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

feat : 프로필 사진 목록 관리 API 구현#37

Open
mongdmin wants to merge 1 commit into
mainfrom
Back/feat/36
Open

feat : 프로필 사진 목록 관리 API 구현#37
mongdmin wants to merge 1 commit into
mainfrom
Back/feat/36

Conversation

@mongdmin

Copy link
Copy Markdown
Collaborator

변경점 👍

  • 프로필 사진 목록 관리를 위한 UserPhoto엔티티를 추가
  • 프로필 사진 업로드 시 사진 정보를 DB에 저장
  • 사용자의 프로필 사진 목록 조회, 여러 사진 중 대표사진 지정/변경 API 구현

프로필 사진 목록 조회

[
{
"id": 1,
"imageUrl": "https://bucket.s3.ap-northeast-2.amazonaws.com/user/profile/1/example.png",
"originalFilename": "example.png",
"isPublic": true,
"isRepresentative": true,
"createdAt": "2026-06-21T15:30:00"
}
]

대표사진 변경

{
"id": 2,
"imageUrl": "https://bucket.s3.ap-northeast-2.amazonaws.com/user/profile/1/another.png",
"originalFilename": "another.png",
"isPublic": false,
"isRepresentative": true,
"createdAt": "2026-06-21T15:40:00"
}

#테스트
-프로필 사진 업로드 시 S3 업로드 결과 URL로 UserPhoto가 저장되는지 확인
-대표사진으로 업로드하는 경우 기존 대표사진 해제 및 User.picture 갱신 확인
-사진 목록 조회 시 사용자의 사진 목록이 응답 DTO로 변환되는지 확인
-대표사진 변경 시 선택한 사진만 대표사진으로 설정되고 User.picture가 변경되는지 확인

@mongdmin mongdmin linked an issue Jun 20, 2026 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat : 사진 부분 api

1 participant