-
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 #97 from gutanbug/dev
fix : 사용자들의 정보를 간단하게 볼 수 있는 API 추가
- Loading branch information
Showing
8 changed files
with
111 additions
and
15 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
17 changes: 17 additions & 0 deletions
17
...n/java/com/renew/sw/mentoring/domain/user/model/dto/request/RequestSimpleUserInfoDto.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,17 @@ | ||
package com.renew.sw.mentoring.domain.user.model.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class RequestSimpleUserInfoDto { | ||
|
||
@Schema(description = "닉네임", example = "nickname") | ||
private String nickname; | ||
|
||
public RequestSimpleUserInfoDto(String nickname) { | ||
this.nickname = nickname; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...java/com/renew/sw/mentoring/domain/user/model/dto/response/ResponseSimpleUserInfoDto.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,28 @@ | ||
package com.renew.sw.mentoring.domain.user.model.dto.response; | ||
|
||
import com.renew.sw.mentoring.domain.user.model.UserInfo; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public class ResponseSimpleUserInfoDto { | ||
|
||
private final String name; | ||
private final String studentId; | ||
private final String nickname; | ||
private final String teamName; | ||
private final String mentorName; | ||
private final List<String> teamMembers; | ||
|
||
public ResponseSimpleUserInfoDto(UserInfo userInfo) { | ||
this.name = userInfo.getName(); | ||
this.studentId = userInfo.getStudentId(); | ||
this.nickname = userInfo.getNickname(); | ||
this.teamName = userInfo.getTeamName(); | ||
this.mentorName = userInfo.getMentorName(); | ||
this.teamMembers = userInfo.getTeamMembers(); | ||
} | ||
} |
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