forked from thoughtworks/HeartBeat
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADM-727:[backend][docs]feat: Merge two API into one (#897)
- Loading branch information
Showing
14 changed files
with
402 additions
and
331 deletions.
There are no files selected for viewing
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
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
45 changes: 0 additions & 45 deletions
45
...end/src/main/java/heartbeat/controller/report/dto/request/GenerateBoardReportRequest.java
This file was deleted.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
backend/src/main/java/heartbeat/controller/report/dto/request/GenerateDoraReportRequest.java
This file was deleted.
Oops, something went wrong.
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
15 changes: 15 additions & 0 deletions
15
backend/src/main/java/heartbeat/controller/report/dto/request/ReportType.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,15 @@ | ||
package heartbeat.controller.report.dto.request; | ||
|
||
public enum ReportType { | ||
|
||
BOARD, DORA; | ||
|
||
public static ReportType fromValue(String type) { | ||
return switch (type) { | ||
case "board" -> BOARD; | ||
case "dora" -> DORA; | ||
default -> throw new IllegalArgumentException("ReportType not found!"); | ||
}; | ||
} | ||
|
||
} |
Oops, something went wrong.