package cn.reghao.tnb.content.api.dto.spider;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 爬取的视频
 *
 * @author reghao
 * @date 2021-12-31 11:22:36
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CrawledVideo implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank
    private String videoId;
    private String videoFileId;
    @NotBlank
    private String coverUrl;
    @NotNull
    private Boolean horizontal;
    @NotNull
    private Integer duration;
    @NotBlank
    private String title;
    private String description;
    @NotNull
    private Integer rid;
    //@NotBlank
    private String tags;
    @NotNull
    private Long pubDate;
    @NotNull
    private Integer view;
    @NotNull
    private Integer danmaku;
    @NotNull
    private Integer comment;
    @NotNull
    private Integer favorite;
    @NotNull
    private Integer share;
    @NotNull
    private Integer thumbUp;
    @NotNull
    private Integer thumbDown;
    @NotNull
    private Integer coin;
    @NotNull
    private Integer scope;
    @NotNull
    private Long userId;
}
