feat: 계정정보 프로필 사진 — 구글 아바타 우선 + 변경/되돌리기

- 아바타 표시 우선순위: 사용자 지정(profileImage) > 구글(googlePicture) > 이니셜
- 사진 변경: 이미지 선택 → 정사각형 크롭·192px 축소(JPEG) → PUT /auth/profile-image
- 되돌리기: 사용자 지정 사진 해제 → 구글 사진(없으면 이니셜)으로 폴백
- authApi.updateProfileImage 추가, utils/avatar.js(표시 소스/이니셜/다운스케일)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-28 11:39:48 +09:00
parent 24ab91b257
commit 7855298eac
3 changed files with 226 additions and 1 deletions
+4
View File
@@ -35,4 +35,8 @@ export const authApi = {
updateProfile(payload) {
return http.put('/auth/profile', payload)
},
// 프로필 사진 변경/해제 — image 가 null/빈값이면 해제(구글 사진으로 폴백)
updateProfileImage(image) {
return http.put('/auth/profile-image', { image })
},
}