refactor(dto): move API DTOs

This commit is contained in:
2026-06-20 16:04:19 +01:00
parent 06f392a3ff
commit 2b1f8ce710
9 changed files with 12 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
package com.ddf.vodsystem.controllers.dto;
import java.time.LocalDateTime;
public record ClipResponse(
Long id,
Long userId,
String title,
String description,
Float duration,
LocalDateTime createdAt
) {}

View File

@@ -0,0 +1,7 @@
package com.ddf.vodsystem.controllers.dto;
import jakarta.validation.constraints.NotNull;
public record ClipSectionRequest(
@NotNull float duration
) {}

View File

@@ -0,0 +1,6 @@
package com.ddf.vodsystem.controllers.dto;
public record ClipUpdateRequest (
String title,
String description
) {}

View File

@@ -0,0 +1,8 @@
package com.ddf.vodsystem.controllers.dto;
import java.time.Instant;
import jakarta.validation.constraints.NotNull;
public record SaveSectionRequest(
@NotNull Instant startTime,
@NotNull Instant endTime) {}