package com.kiisoo.ic.activity.bean;

import com.kiisoo.ic.activity.entity.PmnActivityPromotionParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class ActivityScheduleVO {

    @ApiModelProperty(value = "活动池ID,有就编辑无则新增")
    private Long id;

    @ApiModelProperty(value = "活动池名称", required = true)
    @NotBlank(message = "请输入活动池名称")
    private String name;

    @ApiModelProperty(value = "分类ID", required = true)
    @NotBlank(message = "请输入分类ID")
    private Integer categoryId;

    @ApiModelProperty(value = "分类CODE", required = true)
    private String categoryCode;

    @ApiModelProperty(value = "活动池图片", required = true)
    private String logo;

    @ApiModelProperty(value = "活动池描述")
    private String description;

    @ApiModelProperty(value = "APPID", required = true)
    @NotBlank(message = "请输入APPID")
    private String appId;

    @ApiModelProperty(value = "URI", required = true)
    @NotBlank(message = "请输入uri")
    private String uri;

    @ApiModelProperty(value = "活动类型", required = true)
    @NotNull(message = "至少新增一个活动类型")
    @Size(min = 1, message = "至少新增一个活动类型")
    private List<PmnActivityPromotionParam> params;
}
