-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BSVR-188] Level up 다이얼로그용 API (#111)
* feat: Level에 레벨업 이미지 필드 추가 * feat: 레벨업 다이얼로그 정보 조회 API 추가 * feat: findById를 Optional로 변경 * fix: 유저 후기 개수 카운트 쿼리에 deleteAt is null 조건 추가 * fix: levels info API는 필터 안타게 수정
- Loading branch information
Showing
11 changed files
with
57 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...n/src/main/java/org/depromeet/spot/application/member/dto/response/LevelUpDialogInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.depromeet.spot.application.member.dto.response; | ||
|
||
import org.depromeet.spot.domain.member.Level; | ||
|
||
public record LevelUpDialogInfo(String title, String levelUpImage) { | ||
|
||
public static LevelUpDialogInfo from(Level level) { | ||
return new LevelUpDialogInfo(level.getTitle(), level.getLevelUpImageUrl()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...main/java/org/depromeet/spot/infrastructure/jpa/member/repository/LevelJpaRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package org.depromeet.spot.infrastructure.jpa.member.repository; | ||
|
||
import java.util.Optional; | ||
|
||
import org.depromeet.spot.infrastructure.jpa.member.entity.LevelEntity; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface LevelJpaRepository extends JpaRepository<LevelEntity, Long> { | ||
|
||
LevelEntity findByValue(int value); | ||
Optional<LevelEntity> findByValue(int value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,6 @@ | |
|
||
public interface LevelUsecase { | ||
List<Level> findAllLevels(); | ||
|
||
Level findLevelUpDialogInfo(int nextLevel); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters