package com.kiisoo.ic.activity.bean;

import com.kiisoo.ic.generalize.entity.PrivilageOrganizational;
import com.kiisoo.ic.store.entity.PoiStore;
import io.swagger.annotations.ApiModel;
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;

@ApiModel("欢迎语")
@Data
public class WelcomeVO {

    @ApiModelProperty(value = "欢迎语ID，有就编辑无则新增，欢迎语就是活动实例的一种，category_code = welcome")
    private Long id;

    @ApiModelProperty(value = "活动池ID", required = true)
    @NotNull(message = "请输入活动池ID")
    private Long scheduleId;

    @ApiModelProperty(value = "欢迎语内容")
    private String content;

    @ApiModelProperty(value = "欢迎语类型，有三种，分别是图片/image，网页/link和小程序/miniprogram", required = true)
    private String type;

    @ApiModelProperty(value = "如果是小程序，则必填APPID")
    private String appId;

    @ApiModelProperty(value = "如果是小程序或者网页，必填网页地址，如果是图片，则这里放图片路径", required = true)
    private String url;

    @ApiModelProperty(value = "选择的企业列表", required = true)
//    @NotNull(message = "请选择企业列表")
//    @Size(min = 1, message = "请选择企业列表")
    private List<PrivilageOrganizational> organizations;

    @ApiModelProperty(value = "选择的店铺列表", required = true)
    @NotNull(message = "请选择店铺列表")
    @Size(min = 1, message = "请选择店铺列表")
    private List<PoiStore> stores; // 店铺列表
}
