package com.pig4cloud.pig.marketing.api.vo.app;


import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * @author: lwh
 * @date: 2025-07-22
 * @description: 应用 IP 列表
 */
@Data
@Schema(description = "应用 IP 列表")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class MarketingAppsIpVO implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

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

	/**
	 * ip类型
	 */
	@Schema(description = "ip类型,1-白名单,2-黑名单")
	private Integer ipType;

	/**
	 * 来源类型
	 */
	@Schema(description = "来源类型,1-来自分组,2-具体IP")
	private Integer sourceType;

	/**
	 * 分组ID
	 */
	@Schema(description = "分组ID")
	private Long groupId;

	/**
	 * 分组名称
	 */
	@Schema(description = "分组名称")
	private String groupName;

	/**
	 * ip模式
	 */
	@Schema(description = "ip模式,1-单IP,2-IP段")
	private Integer ipMode;

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

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