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

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

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * @author reghao
 * @date 2024-10-31 14:10:57
 */
@Setter
@Getter
public class AlbumCreateDto {
    @NotBlank
    @Size(min = 1, max = 20, message = "合集名字不能超过 20 个字符")
    private String albumName;
    @ValidEnum(value = PostScope.class, message = "可见范围不正确")
    private Integer scope;
}
