package cn.reghao.tnb.content.app.data.model.dto;

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

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author reghao
 * @date 2023-01-29 10:13:28
 */
@NoArgsConstructor
@Setter
@Getter
public class AudioPublishSbt implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank
    private String audioFileId;
    @NotBlank
    private String title;
    @ValidEnum(value = PostScope.class, message = "可见范围不正确")
    private Integer scope;
    private LocalDateTime scheduledPubDate;
    @NotNull
    private Integer channelCode;
}
