-
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.
- Loading branch information
1 parent
f041a0d
commit a41e870
Showing
15 changed files
with
109 additions
and
22 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
src/main/java/org/ioteatime/meonghanyangserver/common/type/VideoSuccessType.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
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
13 changes: 13 additions & 0 deletions
13
src/main/java/org/ioteatime/meonghanyangserver/video/dto/response/VideoInfoListResponse.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,13 @@ | ||
package org.ioteatime.meonghanyangserver.video.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.util.List; | ||
import lombok.Builder; | ||
|
||
@Schema(description = "동영상 정보 목록 조회 응답") | ||
public record VideoInfoListResponse(@Schema(description = "비디오 정보") List<VideoInfoResponse> video) { | ||
@Builder | ||
public VideoInfoListResponse(List<VideoInfoResponse> video) { | ||
this.video = video; | ||
} | ||
} |
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
6 changes: 6 additions & 0 deletions
6
src/main/java/org/ioteatime/meonghanyangserver/video/mapper/VideoResponseMapper.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,15 @@ | ||
package org.ioteatime.meonghanyangserver.video.mapper; | ||
|
||
import org.ioteatime.meonghanyangserver.video.domain.VideoEntity; | ||
import org.ioteatime.meonghanyangserver.video.dto.response.VideoInfoResponse; | ||
import org.ioteatime.meonghanyangserver.video.dto.response.VideoPresignedUrlResponse; | ||
|
||
public class VideoResponseMapper { | ||
public static VideoPresignedUrlResponse form(String presignedURL) { | ||
return new VideoPresignedUrlResponse(presignedURL); | ||
} | ||
|
||
public static VideoInfoResponse form(VideoEntity videoEntity, String presignedURL) { | ||
return new VideoInfoResponse(videoEntity.getId(), presignedURL, videoEntity.getCreatedAt()); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/org/ioteatime/meonghanyangserver/video/repository/VideoRepository.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,10 +1,14 @@ | ||
package org.ioteatime.meonghanyangserver.video.repository; | ||
|
||
import java.time.LocalDate; | ||
import java.util.List; | ||
import java.util.Optional; | ||
import org.ioteatime.meonghanyangserver.video.domain.VideoEntity; | ||
|
||
public interface VideoRepository { | ||
Optional<VideoEntity> findById(Long videoId); | ||
|
||
void deleteAllByGroupId(Long groupId); | ||
|
||
List<VideoEntity> findByGroupIdAndCreatedAtContains(Long groupId, LocalDate date); | ||
} |
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
3 changes: 1 addition & 2 deletions
3
...ain/java/org/ioteatime/meonghanyangserver/videothumbnail/domain/VideoThumbnailEntity.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
3 changes: 1 addition & 2 deletions
3
...g/ioteatime/meonghanyangserver/videothumbnail/repository/JpaVideoThumbnailRepository.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,4 +1,3 @@ | ||
package org.ioteatime.meonghanyangserver.videothumbnail.repository; | ||
|
||
public interface JpaVideoThumbnailRepository { | ||
} | ||
public interface JpaVideoThumbnailRepository {} |
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
3 changes: 1 addition & 2 deletions
3
.../ioteatime/meonghanyangserver/videothumbnail/repository/VideoThumbnailRepositoryImpl.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,4 +1,3 @@ | ||
package org.ioteatime.meonghanyangserver.videothumbnail.repository; | ||
|
||
public class VideoThumbnailRepositoryImpl implements JpaVideoThumbnailRepository{ | ||
} | ||
public class VideoThumbnailRepositoryImpl implements JpaVideoThumbnailRepository {} |