-
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.
[FIX] find reviewable team API by change response dto
- Loading branch information
Showing
5 changed files
with
83 additions
and
65 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
38 changes: 38 additions & 0 deletions
38
...in/java/com/gabojait/gabojaitspring/api/dto/review/response/ReviewTeamMemberResponse.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,38 @@ | ||
package com.gabojait.gabojaitspring.api.dto.review.response; | ||
|
||
import com.gabojait.gabojaitspring.domain.team.TeamMember; | ||
import com.gabojait.gabojaitspring.domain.user.Position; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
|
||
@Getter | ||
@ToString | ||
@ApiModel(value = "리뷰 팀원 응답") | ||
public class ReviewTeamMemberResponse { | ||
|
||
@ApiModelProperty(position = 1, required = true, value = "회원 식별자") | ||
private Long userId; | ||
|
||
@ApiModelProperty(position = 2, required = true, value = "아이디") | ||
private String username; | ||
|
||
@ApiModelProperty(position = 3, required = true, value = "닉네임") | ||
private String nickname; | ||
|
||
@ApiModelProperty(position = 4, required = true, value = "포지션", | ||
allowableValues = "DESIGNER, FRONTEND, BACKEND, MANAGER") | ||
private Position position; | ||
|
||
@ApiModelProperty(position = 5, required = true, value = "리더 여부") | ||
private Boolean isLeader; | ||
|
||
public ReviewTeamMemberResponse(TeamMember teamMember) { | ||
this.userId = teamMember.getUser().getId(); | ||
this.username = teamMember.getUser().getUsername(); | ||
this.nickname = teamMember.getUser().getNickname(); | ||
this.position = teamMember.getPosition(); | ||
this.isLeader = teamMember.getIsLeader(); | ||
} | ||
} |
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