package org.springblade.file.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 *  id批量参数
 * @author bfhuange
 * @date 2024/10/29
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Schema(description = "id批量参数")
public class IdsDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     *  id列表
     */
    @NotEmpty(message = "id列表不能为空")
    @Schema(description = "id列表")
    private @Valid List<@NotNull(message = "id不能为空") Long> ids;
}
