package com.pig4cloud.pig.marketing.api.dto.config;


import com.pig4cloud.pig.marketing.api.valid.ValueRange;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

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

/**
 * @author: lwh
 * @date: 2025-07-23
 * @description: 删除营销分组入参
 */
@Data
@Schema(description = "删除营销分组入参")
public class DelMarketingGroupDTO implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 分组类型
	 */
	@NotNull(message = "分组类型不能为空")
	@Schema(description = "分组类型,1-ip分组,2-域名分组",example = "1")
	@ValueRange(values = {1, 2}, message = "分组类型值不合法（1-ip分组,2-域名分组）")
	private Integer groupType;

	/**
	 * 分组id列表
	 */
	@Schema(description = "分组id列表")
	@NotEmpty(message = "分组id列表不能为空")
	private List<Long> ids;
}
