package com.liquidnet.service.kylin.dto.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class KylinGroupBuyCreateParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "拼团活动ID")
    @NotNull(message = "拼团活动ID不能为空")
    private String activityId;

    @ApiModelProperty(value = "演出ID")
    @NotNull(message = "演出ID不能为空")
    private String performanceId;

    @ApiModelProperty(value = "场次ID")
    @NotNull(message = "场次ID不能为空")
    private String timeId;

    @ApiModelProperty(value = "票种ID")
    @NotNull(message = "票种ID不能为空")
    private String ticketId;

    @ApiModelProperty(value = "购票张数")
    @NotNull(message = "购票张数不能为空")
    @Min(value = 1, message = "购票张数不能小于1")
    private Integer ticketCount;

    @ApiModelProperty(value = "是否公开 1公开 0私密，默认公开")
    private Integer isPublic;

    @ApiModelProperty(value = "前端展示拼团单价，仅用于服务端比对")
    private BigDecimal groupBuyDisplayPrice;
}
