-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from gague-jinsim-in-jadeul/refact/108_jpa_to…
…_querydsl ♻️ Refactoring Auth / ⚡ Change chatting payload
- Loading branch information
Showing
20 changed files
with
553 additions
and
370 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
555 changes: 241 additions & 314 deletions
555
src/main/java/org/gagu/gagubackend/auth/dao/impl/AuthDAOImpl.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
13 changes: 12 additions & 1 deletion
13
src/main/java/org/gagu/gagubackend/auth/dto/response/ResponseAuthDto.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,18 +1,29 @@ | ||
package org.gagu.gagubackend.auth.dto.response; | ||
|
||
import lombok.*; | ||
import org.gagu.gagubackend.auth.domain.User; | ||
import org.gagu.gagubackend.global.domain.CommonResponse; | ||
import org.gagu.gagubackend.global.security.JwtTokenProvider; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@ToString | ||
@Builder | ||
public class ResponseAuthDto { | ||
|
||
private String accessToken; | ||
private String nickname; | ||
private String name; | ||
private String resourceId; | ||
private CommonResponse<?> status; | ||
|
||
public ResponseAuthDto(User user, String accessToken){ | ||
this.accessToken = accessToken; | ||
this.nickname = user.getNickName(); | ||
this.name = user.getName(); | ||
this.resourceId = user.getResourceId(); | ||
this.status = CommonResponse.success(); | ||
} | ||
} |
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
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
Oops, something went wrong.