package com.tzy.common.dto.act;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 拼团绑定生态购参数
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@AllArgsConstructor
@NoArgsConstructor
public class GroupSaleCodeDTO implements Serializable {
    // 箱:CARTON;盒:BOX,包:PACK
    private String boxType;
    // 数量
    private int boxNum;
    private boolean hasBoxConfig;

    public GroupSaleCodeDTO(boolean hasBoxConfig) {
        this.hasBoxConfig = hasBoxConfig;
    }

    public GroupSaleCodeDTO(String boxType, int boxNum) {
        this.boxType = boxType;
        this.boxNum = boxNum;
        hasBoxConfig=true;
    }
}