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

import lombok.Getter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author reghao
 * @date 2023-10-18 15:55:40
 */
@Getter
public class ContentAccessCode {
    @NotBlank
    private String contentId;
    @NotNull
    private Integer contentType;
    @Length(min = 1, max = 6, message = "AccessCode length not matched")
    private String accessCode;
}
