From e3c171ce9f71d0835d2b5dfc457c01c4b98c2293 Mon Sep 17 00:00:00 2001 From: ragdoll Date: Fri, 12 Jun 2020 06:51:02 +0900 Subject: [PATCH] =?UTF-8?q?[BE/#17]=20Feat=20:=20=EC=9D=B4=EC=8A=88=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=20=EA=B4=80=EB=A0=A8=20VO=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(UserVO,=20MilestoneVO,=20LabelVO)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - UserSummary : Author, Assignees 등 유저 정보를 다루는 VO 역할 - MilestoneSummary : 마일스톤에 대한 간략 정보를 다루는 VO - LabelDetails : 레이블에 대한 정보를 담고 있는 VO (도메인과 중복되어 역할에 대한 고민이 더 필요) --- .../ragdoll/dto/UserVO/UserSummary.java | 46 +++++++++++++++++++ .../ragdoll/dto/labelVO/LabelDetails.java | 46 +++++++++++++++++++ .../dto/milestoneVO/MilestoneSummary.java | 35 ++++++++++++++ 3 files changed, 127 insertions(+) create mode 100644 BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/UserVO/UserSummary.java create mode 100644 BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/labelVO/LabelDetails.java create mode 100644 BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/milestoneVO/MilestoneSummary.java diff --git a/BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/UserVO/UserSummary.java b/BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/UserVO/UserSummary.java new file mode 100644 index 0000000..1ab9544 --- /dev/null +++ b/BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/UserVO/UserSummary.java @@ -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; + } +} diff --git a/BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/labelVO/LabelDetails.java b/BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/labelVO/LabelDetails.java new file mode 100644 index 0000000..78363ec --- /dev/null +++ b/BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/labelVO/LabelDetails.java @@ -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; + } +} diff --git a/BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/milestoneVO/MilestoneSummary.java b/BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/milestoneVO/MilestoneSummary.java new file mode 100644 index 0000000..38276f7 --- /dev/null +++ b/BE/src/main/java/com/codesquad/issuetracker/ragdoll/dto/milestoneVO/MilestoneSummary.java @@ -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; + } +}