View Javadoc
1   package fr.tiogars.inception.common.models;
2   
3   import java.util.List;
4   
5   import io.swagger.v3.oas.annotations.media.Schema;
6   import jakarta.validation.constraints.NotEmpty;
7   import jakarta.validation.constraints.NotNull;
8   import jakarta.validation.constraints.Size;
9   
10  /**
11   * Identifies the records selected for a bulk deletion.
12   *
13   * @param ids persistent identifiers of the selected records
14   * @since 0.1.0
15   */
16  @Schema(description = "Identifiers of the records selected for deletion.")
17  public record DeleteSelectedRequest(
18          @Schema(description = "Persistent identifiers of the selected records.", example = "[1, 2, 3]", requiredMode = Schema.RequiredMode.REQUIRED)
19          @NotEmpty @Size(max = 1000) List<@NotNull Long> ids) {
20  }