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


import com.pig4cloud.pig.marketing.api.vo.app.MarketingAppsDomainVO;
import com.pig4cloud.pig.marketing.api.vo.app.MarketingAppsIpVO;
import io.swagger.v3.oas.annotations.media.Schema;
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-22
 * @description: 修改应用IP、域名
 */
@Data
@Schema(description = "修改应用IP、域名")
public class UpdateMarketingAppsDTO implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

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

	/**
	 * 域名限制
	 */
	@Schema(description = "域名限制")
	Boolean domainLimit;

	/**
	 * 营销投放
	 */
	@Schema(description = "营销投放")
	Boolean launch;

	/**
	 * 备注
	 */
	@Schema(description = "备注")
	String remark;

	/**
	 * 应用ip列表
	 */
	@Schema(description = "应用ip列表")
	List<MarketingAppsIpVO> ips;

	/**
	 * 应用域名列表
	 */
	@Schema(description = "应用域名列表")
	List<MarketingAppsDomainVO> domains;
}
