package com.template.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author ceshi
 * @since 2024-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="新增Image对象", description="")
public class insertImageRequest implements Serializable {

    @ApiModelProperty(value = "相册分类")
    @NotNull(message = "相册分类不能为空")
    private Integer categoryId;

    @ApiModelProperty(value = "相册分类名称")
    @NotBlank(message = "相册分类名称不能为空")
    private String categoryName;

    @ApiModelProperty(value = "图片链接")
    @NotEmpty(message = "图片链接集合不能为空")
    private List<String> images;

}
