-
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.
[BE/#17] Feat : 이슈 목록 관련 VO 추가 (UserVO, MilestoneVO, LabelVO)
- UserSummary : Author, Assignees 등 유저 정보를 다루는 VO 역할 - MilestoneSummary : 마일스톤에 대한 간략 정보를 다루는 VO - LabelDetails : 레이블에 대한 정보를 담고 있는 VO (도메인과 중복되어 역할에 대한 고민이 더 필요)
- Loading branch information
Showing
3 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/UserVO/UserSummary.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,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; | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/labelVO/LabelDetails.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,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; | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/milestoneVO/MilestoneSummary.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,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; | ||
} | ||
} |