-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: dto를 interface로 프로젝션하도록 변경
- Loading branch information
1 parent
d1bb360
commit 2627eea
Showing
3 changed files
with
9 additions
and
13 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
7 changes: 6 additions & 1 deletion
7
backend/src/main/java/com/digginroom/digginroom/repository/dto/MemberNickname.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,4 +1,9 @@ | ||
package com.digginroom.digginroom.repository.dto; | ||
|
||
public record MemberNickname(Long memberId, String nickName) { | ||
import org.springframework.beans.factory.annotation.Value; | ||
|
||
public interface MemberNickname { | ||
|
||
@Value("#{target.nickname}") | ||
String getNickname(); | ||
} |