-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...ore/src/main/java/org/nexters/jaknaesocore/domain/survey/dto/SurveySubmissionCommand.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,3 @@ | ||
package org.nexters.jaknaesocore.domain.survey.dto; | ||
|
||
public record SurveySubmissionCommand(Long optionId, String comment) {} |
3 changes: 0 additions & 3 deletions
3
.../main/java/org/nexters/jaknaesocore/domain/survey/dto/SurveySubmissionServiceRequest.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
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
6 changes: 3 additions & 3 deletions
6
...java/org/nexters/jaknaesoserver/domain/survey/controller/dto/SurveySubmissionRequest.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package org.nexters.jaknaesoserver.domain.survey.controller.dto; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import org.nexters.jaknaesocore.domain.survey.dto.SurveySubmissionServiceRequest; | ||
import org.nexters.jaknaesocore.domain.survey.dto.SurveySubmissionCommand; | ||
|
||
public record SurveySubmissionRequest(@NotNull Long optionId, String comment) { | ||
public SurveySubmissionServiceRequest toServiceRequest() { | ||
return new SurveySubmissionServiceRequest(optionId(), comment()); | ||
public SurveySubmissionCommand toServiceRequest() { | ||
return new SurveySubmissionCommand(optionId(), comment()); | ||
} | ||
} |
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