-
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.
π¨ Refactor/#179 - κ²μκΈ μμ± μ μμ±λ κ²μκΈ id ν¨κ» λ°ν
- Loading branch information
1 parent
97890ff
commit d08ff64
Showing
6 changed files
with
39 additions
and
9 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
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
26 changes: 26 additions & 0 deletions
26
...main/java/com/daon/onjung/suggestion/application/dto/response/CreateBoardResponseDto.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,26 @@ | ||
package com.daon.onjung.suggestion.application.dto.response; | ||
|
||
import com.daon.onjung.core.dto.SelfValidating; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class CreateBoardResponseDto extends SelfValidating<CreateBoardResponseDto> { | ||
|
||
@JsonProperty("id") | ||
private final Long id; | ||
|
||
@Builder | ||
public CreateBoardResponseDto(Long id) { | ||
this.id = id; | ||
|
||
this.validateSelf(); | ||
} | ||
|
||
public static CreateBoardResponseDto of(Long id) { | ||
return CreateBoardResponseDto.builder() | ||
.id(id) | ||
.build(); | ||
} | ||
} |
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