package com.petshop.backend.dto.common;

import jakarta.validation.constraints.NotEmpty;
import java.util.List;
import java.util.Objects;

public class BulkDeleteRequest {
    @NotEmpty(message = "IDs list cannot be empty")
    private List<Long> ids;

    public List<Long> getIds() {
        return ids;
    }

    public void setIds(List<Long> ids) {
        this.ids = ids;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BulkDeleteRequest that = (BulkDeleteRequest) o;
        return Objects.equals(ids, that.ids);
    }

    @Override
    public int hashCode() {
        return Objects.hash(ids);
    }

    @Override
    public String toString() {
        return "BulkDeleteRequest{" +
                "ids=" + ids +
                '}';
    }
}
