package com.czg.account.param;

import com.czg.validator.group.DefaultGroup;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 添加图片至图库入参
 *
 * @author tankaikai
 * @since 2025-02-27 09:05
 */
@Data
public class PictureGalleryParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 图片分类id
     */
    @NotNull(message = "图片分类id不能为空", groups = DefaultGroup.class)
    private Long pictureClassifyId;
    /**
     * 图片URL数组
     */
    @NotEmpty(message = "图片URL数组不能为空", groups = DefaultGroup.class)
    private String[] urls;
}
