From 432dd48621482b2fe558e7562223c5eed30ee559 Mon Sep 17 00:00:00 2001 From: zionhann Date: Mon, 18 Sep 2023 18:16:59 +0900 Subject: [PATCH] =?UTF-8?q?Hotfix:=20=EA=B7=B8=EB=A3=B9=20=ED=83=9C?= =?UTF-8?q?=EA=B7=B8=20=EB=B2=88=ED=98=B8=20=EB=B0=98=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/edu/handong/csee/histudy/dto/TeamReportDto.java | 4 ++++ .../java/edu/handong/csee/histudy/service/TeamService.java | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/edu/handong/csee/histudy/dto/TeamReportDto.java b/src/main/java/edu/handong/csee/histudy/dto/TeamReportDto.java index 9827461..5f7a50a 100644 --- a/src/main/java/edu/handong/csee/histudy/dto/TeamReportDto.java +++ b/src/main/java/edu/handong/csee/histudy/dto/TeamReportDto.java @@ -15,8 +15,12 @@ public class TeamReportDto { @Schema(description = "Team ID", example = "1", type = "number") + @Deprecated private long group; + @Schema(description = "Team tag number", example = "1") + private Integer tag; + @Schema(description = "Team members", type = "array") private List members; diff --git a/src/main/java/edu/handong/csee/histudy/service/TeamService.java b/src/main/java/edu/handong/csee/histudy/service/TeamService.java index b2cc5d0..dd7f7c9 100644 --- a/src/main/java/edu/handong/csee/histudy/service/TeamService.java +++ b/src/main/java/edu/handong/csee/histudy/service/TeamService.java @@ -50,7 +50,9 @@ public TeamReportDto getTeamReports(long id, String email) { List reports = studyGroup.getReports() .stream() .map(ReportDto.ReportBasic::new).toList(); - return new TeamReportDto(studyGroup.getId(), users, studyGroup.getTotalMinutes(), reports); + return new TeamReportDto(studyGroup.getId(), + studyGroup.getTag(), + users, studyGroup.getTotalMinutes(), reports); } public List getTeamUsers(String email) {