package com.simuwang.base.pojo.dto;

import com.simuwang.base.common.support.command.BaseIdsCmd;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

import java.util.List;

/**
 * @author wangzaijun
 * @date 2024/9/13 15:33
 * @description 根据id删除对象的请求参数
 */
public class DeleteByIdsCmd extends BaseIdsCmd {
    @NotNull(message = "ids不能为空")
    @Size(min = 1, message = "必须选择至少一条数据")
    private List<Integer> ids;

    @Override
    public List<Integer> getIds() {
        return ids;
    }

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