Skip to content

Commit

Permalink
[BE/#17] Feat : 이슈 목록 관련 VO 추가 (UserVO, MilestoneVO, LabelVO)
Browse files Browse the repository at this point in the history
- UserSummary : Author, Assignees 등 유저 정보를 다루는 VO 역할
- MilestoneSummary : 마일스톤에 대한 간략 정보를 다루는 VO
- LabelDetails : 레이블에 대한 정보를 담고 있는 VO (도메인과 중복되어 역할에 대한 고민이 더 필요)
  • Loading branch information
MuseopKim committed Jun 11, 2020
1 parent a3704ca commit e3c171c
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package com.codesquad.issuetracker.ragdoll.dto.UserVO;

public class UserSummary {

private Long userId;

private String userName;

private String avatarUrl;

public UserSummary() {}

private UserSummary(Long userId, String userName, String avatarUrl) {
this.userId = userId;
this.userName = userName;
this.avatarUrl = avatarUrl;
}

public static UserSummary create(Long userId, String userName, String avatarUrl) {
return new UserSummary(userId, userName, avatarUrl);
}

public Long getUserId() {
return userId;
}

public void setUserId(Long userId) {
this.userId = userId;
}

public String getUserName() {
return userName;
}

public void setUserName(String userName) {
this.userName = userName;
}

public String getAvatarUrl() {
return avatarUrl;
}

public void setAvatarUrl(String avatarUrl) {
this.avatarUrl = avatarUrl;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package com.codesquad.issuetracker.ragdoll.dto.labelVO;

public class LabelDetails {

private Integer labelId;

private String labelName;

private String hexCode;

public LabelDetails() {}

private LabelDetails(Integer labelId, String labelName, String hexCode) {
this.labelId = labelId;
this.labelName = labelName;
this.hexCode = hexCode;
}

public static LabelDetails create(Integer labelId, String labelName, String hexCode) {
return new LabelDetails(labelId, labelName, hexCode);
}

public Integer getLabelId() {
return labelId;
}

public void setLabelId(Integer labelId) {
this.labelId = labelId;
}

public String getLabelName() {
return labelName;
}

public void setLabelName(String labelName) {
this.labelName = labelName;
}

public String getHexCode() {
return hexCode;
}

public void setHexCode(String hexCode) {
this.hexCode = hexCode;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package com.codesquad.issuetracker.ragdoll.dto.milestoneVO;

public class MilestoneSummary {

private Integer milestoneId;

private String milestoneTitle;

public MilestoneSummary() {}

public MilestoneSummary(Integer milestoneId, String milestoneTitle) {
this.milestoneId = milestoneId;
this.milestoneTitle = milestoneTitle;
}

public static MilestoneSummary create(Integer milestoneId, String milestoneTitle) {
return new MilestoneSummary(milestoneId, milestoneTitle);
}

public Integer getMilestoneId() {
return milestoneId;
}

public void setMilestoneId(Integer milestoneId) {
this.milestoneId = milestoneId;
}

public String getMilestoneTitle() {
return milestoneTitle;
}

public void setMilestoneTitle(String milestoneTitle) {
this.milestoneTitle = milestoneTitle;
}
}

0 comments on commit e3c171c

Please sign in to comment.