Commit 36838e1
authored
* refactor: Wishlist 엔티티를 MyBar 엔티티로 리팩토링 및 개선
- Wishlist 도메인을 MyBar 도메인으로 명칭 변경
- `createdAt` 필드에 `@CreatedDate` 어노테이션 적용하여 생성 시간 자동화
- Soft Delete 구현을 위해 `deletedAt` 필드 추가
- `WishlistStatus` enum을 `KeepStatus` enum으로 변경
* refactor: WishlistStatus enum을 KeepStatus enum으로 변경
- 도메인 명칭 변경에 맞춰 WishlistStatus enum 클래스를 KeepStatus로 변경
- enum 패키지 위치를 'wishlist'에서 'mybar'으로 이동
* refactor: 불필요한 Dto 삭제
* feat: 마이바 목록 조회 DTO 추가
- 마이바 목록 조회 시 사용될 MyBarListResponseDto 클래스 추가
- 페이징 처리를 위한 nextCursor 필드 추가
* refactor: WishlistResponseDto를 MyBarItemResponseDto로 리팩토링
- WishlistResponseDto 클래스를 MyBarItemResponseDto로 명칭 변경
- DTO가 사용자(User) 정보 대신 킵한 칵테일(Cocktail) 정보를 직접 포함하도록 수정
* refactor: WishlistRepository를 MyBarRepository로 리팩토링 및 쿼리 메소드 추가
- WishlistRepository 인터페이스를 MyBarRepository로 명칭 변경
- '나만의 바' 기능의 데이터 접근을 위해 쿼리 메소드 2개 추가
- `findByUserIdAndStatusOrderByIdDesc`: 특정 사용자의 킵 목록을 페이징하여 조회
- `countByUserIdAndStatus`: 특정 사용자의 활성 킵 개수를 카운트
* refactor: API 응답을 커서 기반 페이징 방식에서 오프셋 기반 페이징 방식으로 변경
* feat: 마이바(MyBar) 목록 조회 서비스 로직 구현
* feat: 마이바(MyBar) 목록 조회 API 구현
* fix typo
1 parent 437a1da commit 36838e1
File tree
12 files changed
+183
-109
lines changed- src/main/java/com/back/domain
- mybar
- controller
- dto
- entity
- enums
- repository
- service
- wishlist
- dto
- entity
- enums
- repository
12 files changed
+183
-109
lines changedLines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 0 additions & 37 deletions
This file was deleted.
0 commit comments