-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/user-profile
- Loading branch information
Showing
4 changed files
with
48 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
27 changes: 27 additions & 0 deletions
27
server/src/main/java/com/yogit/server/board/dto/response/DeleteBoardRes.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,27 @@ | ||
package com.yogit.server.board.dto.response; | ||
|
||
import com.yogit.server.board.entity.Board; | ||
import com.yogit.server.config.domain.BaseStatus; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
public class DeleteBoardRes { | ||
|
||
@ApiModelProperty(example = "ACTIVE", value = "객체 상태") | ||
private BaseStatus status; | ||
|
||
@Builder | ||
public DeleteBoardRes(BaseStatus status) { | ||
this.status = status; | ||
} | ||
|
||
public static DeleteBoardRes toDto(Board board){ | ||
return DeleteBoardRes.builder() | ||
.status(board.getStatus()) | ||
.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