feat: 프로필 사진 — 구글 아바타 동기화 + 사용자 지정 이미지
- member.google_picture(구글 아바타 URL), profile_image(사용자 지정 data URL) 컬럼 추가(멱등) - 구글 로그인 시 picture 클레임 추출 → 신규 저장, 기존은 변경 시 동기화 - PUT /api/auth/profile-image: 사용자 지정 사진 설정/해제(빈값=해제→구글 폴백), data URL·용량 검증 - MemberResponse 에 googlePicture/profileImage 노출(표시 우선순위 프론트 처리) - 관리자 목록(findAll)은 무거운 profile_image 제외해 가볍게 조회 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
6256d3e63d
commit
98f5f51112
@@ -26,6 +26,8 @@ public class Member implements Serializable {
|
||||
private String provider; // LOCAL / NAVER / GOOGLE
|
||||
private String providerId; // 소셜 제공자 측 고유 ID
|
||||
private String googleId; // 구글 sub (계정 연결용 — LOCAL 계정에 구글을 연결해도 provider 는 유지)
|
||||
private String googlePicture; // 구글 아바타 URL (로그인 시 동기화)
|
||||
private String profileImage; // 사용자 지정 프로필 이미지(data URL). 우선순위: profileImage > googlePicture > 이니셜
|
||||
private String role; // USER / ADMIN
|
||||
private String plan; // FREE / PREMIUM (멤버십)
|
||||
private String status; // ACTIVE / SUSPENDED / WITHDRAWN
|
||||
|
||||
Reference in New Issue
Block a user