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) {