package com.slodon.b2b2c.promotion.dto;

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

import java.io.Serializable;
import java.util.Date;

/**
 *
 * 拼团编辑DTO
 * @author wuxy
 */
@Data
public class SpellUpdateDTO implements Serializable {

    private static final long serialVersionUID = 895656825180918775L;
    @ApiModelProperty(value = "拼团活动id", required = true)
    private Integer spellId;

    @ApiModelProperty(value = "拼团活动名称", required = true)
    private String spellName;

    @ApiModelProperty(value = "拼团活动标签id", required = true)
    private Integer spellLabelId;

    @ApiModelProperty(value = "活动开始时间", required = true)
    private Date startTime;

    @ApiModelProperty(value = "活动结束时间", required = true)
    private Date endTime;

    @ApiModelProperty(value = "要求成团人数", required = true)
    private Integer requiredNum;

    @ApiModelProperty(value = "成团周期（开团-截团时长），单位：小时", required = true)
    private Integer cycle;

    @ApiModelProperty(value = "活动最大限购数量；0为不限购", required = true)
    private Integer buyLimit;

    @ApiModelProperty("是否模拟成团(0-关闭/1-开启）")
    private Integer isSimulateGroup;

    @ApiModelProperty("团长是否有优惠(0-没有/1-有）")
    private Integer leaderIsPromotion;

    @ApiModelProperty(value = "货品信息集合,json字符串([{\"productId\":101,\"spellPrice\":50,\"leaderPrice\":10,\"spellStock\":100}])", required = true)
    private String goodsList;
}
