Skip to content

주소 등록 API 구현 #50

Description

@wooxexn

1. 구분

  • BackEnd
  • Infra
  • ETC

2. 대분류

  • feat
  • refactor
  • settings
  • etc

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

주소 등록 API 구현 (Address 도메인)

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

  • AddressRepository 인터페이스 구현 (Spring Data JPA)
  • 사용자별 활성 주소 조회, 기본 주소 조회, 중복 체크 메서드 정의
  • 주소 등록 Request/Response DTO 설계 및 구현
  • AddressCreateRequestDto (유효성 검증: 주소명, 수령인, 연락처, 우편번호, 도로명주소, 상세주소)
  • AddressCreateResponseDto (등록 완료 정보 + fullAddress 조합)
  • AddressMapper 인터페이스 구현 (MapStruct)
  • DTO ↔ Entity 변환 매핑 메서드 정의
  • fullAddress 자동 조합 로직 적용
  • AddressService 비즈니스 로직 구현
  • 주소명 중복 체크 기능
  • 기본 주소 관리 (새 기본 주소 설정 시 기존 해제)
  • 첫 번째 주소 자동 기본 설정 로직
  • AddressController REST API 엔드포인트 구현
  • POST /v1/addresses 주소 등록 API
  • JWT 인증 기반 사용자 정보 추출
  • SecurityConfig 주소 API 인증 설정 추가
  • /v1/addresses/** 경로 인증 필수 설정
  • ApiResponse 표준 응답 구조 적용
  • API 테스트 및 검증 완료

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions