-
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.
#2 folder 생성 코드 구현, image와 동영상 모두 flask에 보내는 코드 구현
- Loading branch information
Showing
4 changed files
with
79 additions
and
10 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
10 changes: 3 additions & 7 deletions
10
src/main/java/com/capic/server/domain/video/dto/VideoReq.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,13 +1,9 @@ | ||
package com.capic.server.domain.video.dto; | ||
|
||
import com.capic.server.domain.video.entity.Video; | ||
import java.util.List; | ||
|
||
public record VideoReq( | ||
Long url | ||
String videoName, List<String> images | ||
) { | ||
public Video toEntity(String url){ | ||
return Video.builder() | ||
.url(url) | ||
.build(); | ||
} | ||
|
||
} |
6 changes: 3 additions & 3 deletions
6
src/main/java/com/capic/server/domain/video/dto/VideoRes.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,9 +1,9 @@ | ||
package com.capic.server.domain.video.dto; | ||
|
||
public record VideoRes( | ||
String url | ||
String folderName | ||
) { | ||
public static VideoRes of(String url){ | ||
return new VideoRes(url); | ||
public static VideoRes of(String folderName){ | ||
return new VideoRes(folderName); | ||
} | ||
} |
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