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.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

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

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@Schema(description = "id")
	private Long id;

	/**
	 * ip模式,1-单IP,2-IP段
	 */
	@NotNull(message = "ip模式不能为空")
	@Schema(description = "ip模式,1-单IP,2-IP段")
	@ValueRange(values = {1, 2}, message = "IP模式值不合法（1-单IP,2-IP段）")
	private Integer ipMode;

	/**
	 * 起始IP
	 */
	@Schema(description = "起始IP")
	private String startIp;

	/**
	 * 结束IP
	 */
	@Schema(description = "结束IP")
	private String endIp;

	/**
	 * 是否修改
	 */
	@Schema(description = "是否修改")
	private Boolean modify = false;
	
}
