Float only stores up to 16 million, and file size is stored in bytes. A video can easily be over 16MB (16 million bytes), therefore Long is needed.
32 lines
507 B
Java
32 lines
507 B
Java
package com.ddf.vodsystem.dto;
|
|
|
|
import jakarta.validation.constraints.*;
|
|
import lombok.Data;
|
|
|
|
@Data
|
|
public class ClipOptions {
|
|
@NotBlank
|
|
private String title;
|
|
|
|
private String description;
|
|
|
|
@NotNull
|
|
@Positive
|
|
private Float startPoint;
|
|
|
|
@NotNull @Positive
|
|
private Float duration;
|
|
|
|
@DecimalMin("1.0") @DecimalMax("120.0")
|
|
private Float fps;
|
|
|
|
@Positive
|
|
private Integer width;
|
|
|
|
@Positive
|
|
private Integer height;
|
|
|
|
@Positive
|
|
private Long fileSize;
|
|
}
|