package org.dromara.mall.promotion.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.mall.promotion.domain.MallGroupBuy;

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

/**
 * 拼团活动视图对象 mall_group_buy
 *
 * @author pengles
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = MallGroupBuy.class)
public class MallGroupBuyVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 拼团ID
     */
    @ExcelProperty(value = "拼团ID")
    private Long id;

    /**
     * 活动ID
     */
    @ExcelProperty(value = "活动ID")
    private Long promotionId;

    /**
     * SKU ID
     */
    @ExcelProperty(value = "SKU ID")
    private Long skuId;

    /**
     * 拼团价(分)
     */
    @ExcelProperty(value = "拼团价(分)")
    private Integer groupPrice;

    /**
     * 成团人数
     */
    @ExcelProperty(value = "成团人数")
    private Integer groupSize;

    /**
     * 拼团有效期(小时)
     */
    @ExcelProperty(value = "拼团有效期(小时)")
    private Integer durationHours;

    /**
     * 状态(0启用 1禁用)
     */
    @ExcelProperty(value = "状态")
    private Integer status;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private Date updateTime;

}
