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

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

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

/**
 * @author reghao
 * @date 2024-10-31 14:11:08
 */
@Setter
@Getter
public class AlbumActionDto {
    @NotNull
    private Long albumId;
    @ValidEnum(value = AlbumAction.class, message = "操作类型不正确")
    private Integer action;
    @NotBlank
    @Size(max = 10, message = "postId 不能超过 10 个字符")
    private String postId;
}
