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
@@ -104,4 +104,12 @@ public class AuthController {
|
||||
HttpServletRequest request) {
|
||||
return authService.updateProfile(current.getId(), AuthInterceptor.resolveToken(request), req);
|
||||
}
|
||||
|
||||
/** 프로필 사진(사용자 지정) 변경/해제 — image 가 비면 해제(구글 사진으로 폴백) */
|
||||
@PutMapping("/profile-image")
|
||||
public MemberResponse updateProfileImage(
|
||||
@RequestBody com.sb.web.auth.dto.ProfileImageRequest req,
|
||||
@RequestAttribute(AuthInterceptor.CURRENT_MEMBER) SessionUser current) {
|
||||
return authService.updateProfileImage(current.getId(), req.getImage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user