From db49e327dddb1dbc40111975fa69529a0fd3242d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=9E=AC=ED=98=81?= Date: Sat, 28 Sep 2024 16:55:47 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20:sparkles:=20=ED=8C=80=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=20=EC=8B=9C,=20=ED=8C=80=20=EC=9D=B4=EB=A6=84=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80=20(#33)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: :sparkles: 참여코드로 팀(방) 참여 기능 구현 (#27) * feat: :sparkles: 참여코드로 팀(방) 참여 기능 구현 * docs: 참여코드로 팀(방) 참여 api 문서 수정 * feat: ✨루틴 조회/추가/삭제 * feat: 루틴 생성 기능 수정 * fix: 루틴 조회 수정 * feat: :sparkles: 팀 생성 시, 팀 이름 설정 추가 (#32) --------- Co-authored-by: gzhan0226 --- .../com/goormdari/domain/team/application/TeamService.java | 1 + src/main/java/com/goormdari/domain/team/domain/Team.java | 5 ++++- .../goormdari/domain/team/dto/request/CreateTeamRequest.java | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/goormdari/domain/team/application/TeamService.java b/src/main/java/com/goormdari/domain/team/application/TeamService.java index 61a15f7..75ea096 100644 --- a/src/main/java/com/goormdari/domain/team/application/TeamService.java +++ b/src/main/java/com/goormdari/domain/team/application/TeamService.java @@ -39,6 +39,7 @@ public CreateTeamResponse createNewTeam(final String username, final CreateTeamR String joinCode = UUID.randomUUID().toString(); Team team = Team.builder() + .name(createTeamRequest.teamName()) .goal(createTeamRequest.goal()) .deadLine(createTeamRequest.deadline()) .routine1(createTeamRequest.routine1()) diff --git a/src/main/java/com/goormdari/domain/team/domain/Team.java b/src/main/java/com/goormdari/domain/team/domain/Team.java index cde91af..7d5b39f 100644 --- a/src/main/java/com/goormdari/domain/team/domain/Team.java +++ b/src/main/java/com/goormdari/domain/team/domain/Team.java @@ -18,6 +18,8 @@ public class Team extends BaseEntity { @Column(name = "id", updatable = false) private Long id; + private String name; + private String goal; private LocalDate deadLine; @@ -31,7 +33,8 @@ public class Team extends BaseEntity { @Builder - public Team(String goal, LocalDate deadLine, String routine1, String routine2, String routine3, String routine4, String joinCode) { + public Team(String name, String goal, LocalDate deadLine, String routine1, String routine2, String routine3, String routine4, String joinCode) { + this.name = name; this.goal = goal; this.deadLine = deadLine; this.routine1 = routine1; diff --git a/src/main/java/com/goormdari/domain/team/dto/request/CreateTeamRequest.java b/src/main/java/com/goormdari/domain/team/dto/request/CreateTeamRequest.java index 71b2a28..5b88e78 100644 --- a/src/main/java/com/goormdari/domain/team/dto/request/CreateTeamRequest.java +++ b/src/main/java/com/goormdari/domain/team/dto/request/CreateTeamRequest.java @@ -6,6 +6,7 @@ @Builder public record CreateTeamRequest( + String teamName, String goal, LocalDate deadline, String routine1,