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   
7   /**
8    * Reports the outcome of a bulk deletion.
9    *
10   * @param deletedIds identifiers that were deleted
11   * @param skippedIds identifiers that were not found or are protected from deletion
12   * @since 0.1.0
13   */
14  @Schema(description = "Outcome of a bulk deletion.")
15  public record DeleteSelectedResponse(
16          @Schema(description = "Identifiers that were deleted.", requiredMode = Schema.RequiredMode.REQUIRED) List<Long> deletedIds,
17          @Schema(description = "Identifiers that were not found or are protected from deletion.", requiredMode = Schema.RequiredMode.REQUIRED) List<Long> skippedIds) {
18  }