feat: 회원 탈퇴(자기 계정 삭제) — Play 정책 대응
- DELETE /api/auth/me: 본인 계정과 모든 데이터 영구 삭제 - 게시판(글/댓글/추천/이미지)·가계부 전체·포인트·결제기록·세션 → 회원 순 삭제 - WithdrawMapper(게시판/포인트/결제/세션) + BackupMapper(가계부) 재사용 - AuthServiceTest 생성자 보강 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
be15f5b85d
commit
8142b8b518
@@ -80,6 +80,15 @@ public class AuthController {
|
||||
return current;
|
||||
}
|
||||
|
||||
/** 회원 탈퇴 — 본인 계정과 모든 데이터 삭제 */
|
||||
@DeleteMapping("/me")
|
||||
public ResponseEntity<Void> withdraw(
|
||||
@RequestAttribute(AuthInterceptor.CURRENT_MEMBER) SessionUser current,
|
||||
HttpServletRequest request) {
|
||||
authService.withdraw(current.getId(), AuthInterceptor.resolveToken(request));
|
||||
return ResponseEntity.noContent().build();
|
||||
}
|
||||
|
||||
/** 현재 사용자 활동 포인트 (최신값 — 게시판 작성으로 수시 변동) */
|
||||
@GetMapping("/points")
|
||||
public java.util.Map<String, Long> points(
|
||||
|
||||
Reference in New Issue
Block a user