-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 미션 기록 생성 응답 값 response 객체로 Wrapping (#132)
* refactor: MissionRecordCreateResponse 생성 * refactor: 미션 기록 생성 응답 값 response 객체로 Wrapping * test: MissionRecordCreateResponse로 응답되도록 테스트 수정
- Loading branch information
Showing
4 changed files
with
40 additions
and
15 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
11 changes: 11 additions & 0 deletions
11
...ain/java/com/depromeet/domain/missionRecord/dto/response/MissionRecordCreateResponse.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,11 @@ | ||
package com.depromeet.domain.missionRecord.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record MissionRecordCreateResponse( | ||
@Schema(description = "미션 기록 ID", defaultValue = "1") Long missionId) { | ||
|
||
public static MissionRecordCreateResponse from(Long missionId) { | ||
return new MissionRecordCreateResponse(missionId); | ||
} | ||
} |
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