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


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

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

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

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 分组id
	 */
	@Schema(description = "分组id")
	@NotNull(message = "分组id不能为空")
	private Long id;

	/**
	 * 分组名称
	 */
	@Schema(description = "分组名称")
	@Size(max = 255, message = "分组名称长度不能超过255")
	@NotBlank(message = "分组名称不能为空")
	private String groupName;

	/**
	 * 备注
	 */
	@Schema(description = "备注")
	@Size(max = 255, message = "备注长度不能超过255")
	private String remark;

	/**
	 * 删除的分组IP id列表
	 */
	@Schema(description = "删除的分组IP id列表")
	List<Long> delList;

	/**
	 * 分组IP
	 */
	@Valid
	@Schema(description = "分组IP")
	private List<MarketingGroupIPDTO> ips;
}
