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

import cn.reghao.jutil.jdk.web.validator.ValidEnum;
import cn.reghao.tnb.content.api.constant.PostScope;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.io.Serializable;
import java.util.Set;

/**
 * @author reghao
 * @date 2021-11-23 17:52:27
 */
@NoArgsConstructor
@Setter
@Getter
public class VideoPublishSbt implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank
    private String videoId;
    @NotBlank
    private String coverFileId;
    //@NotNull
    private Integer coverChannelCode;
    @NotBlank
    private String title;
    private String description;
    @NotNull
    private Integer categoryPid;
    @NotNull
    private Integer categoryId;
    @Size(min = 1, max = 10, message = "最少 1 个标签，最多 10 个标签")
    private Set<String> tags;
    @ValidEnum(value = PostScope.class, message = "可见范围不正确")
    private Integer scope;
    private Long scheduledTime;
}
