Skip to content

User 삭제 로직 및 응답 구조 일관성 개선 #40

@wooxexn

Description

@wooxexn

1. 구분

  • BackEnd
  • Infra
  • ETC

2. 대분류

  • feat
  • refactor
  • settings
  • etc

3. 작업의 주 내용에 대해서 작성해주세요

User 도메인 코드 품질 개선 및 리팩토링 (한결님이 말씀해주신 수정사항 변경)

4. 세부 작업에 대해서 작성해주세요

  • 불필요한 user.isDeleted() 체크 로직 제거 - 회원 탈퇴 메서드에서 중복 검증 제거
  • DTO success 메서드 제거 - UserSignupResponseDto, LogoutResponseDto, UserDeleteResponseDto의 정적 success 메서드 제거
  • ApiResponse.success() 통일 - 모든 응답 처리를 ApiResponse.success()로 일관성 있게 변경
  • UserService success 메서드 호출 제거 - 생성자 직접 호출로 변경
  • 코드 간소화 및 책임 분리 - DTO는 순수 데이터 전송, 성공/실패 처리는 ApiResponse 담당

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions