-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
21 additions
and
28 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
17 changes: 8 additions & 9 deletions
17
api/server-v1/src/main/java/kr/joberchip/server/v1/block/controller/dto/ImageBlockDTO.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,21 +1,20 @@ | ||
package kr.joberchip.server.v1.block.controller.dto; | ||
|
||
import kr.joberchip.core.block.ImageBlock; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import org.springframework.web.bind.annotation.RequestPart; | ||
import org.springframework.web.multipart.MultipartFile; | ||
|
||
public record ImageBlockDTO( | ||
@RequestParam String title, | ||
@RequestParam String description, | ||
@RequestPart String title, | ||
@RequestPart String description, | ||
@RequestPart MultipartFile attachedImage, | ||
@RequestParam Integer x, | ||
@RequestParam Integer y, | ||
@RequestParam Integer w, | ||
@RequestParam Integer h, | ||
@RequestParam Boolean visible) { | ||
@RequestPart Integer x, | ||
@RequestPart Integer y, | ||
@RequestPart Integer w, | ||
@RequestPart Integer h, | ||
@RequestPart Boolean visible) { | ||
|
||
public ImageBlock toEntity() { | ||
return ImageBlock.of(title, description, x, y, w, h, visible); | ||
return ImageBlock.of(title, description, x, y, w, h); | ||
} | ||
} |
9 changes: 1 addition & 8 deletions
9
api/server-v1/src/main/java/kr/joberchip/server/v1/block/controller/dto/LinkBlockDTO.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
20 changes: 10 additions & 10 deletions
20
api/server-v1/src/main/java/kr/joberchip/server/v1/block/controller/dto/VideoBlockDTO.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