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.MallSeckill;

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

/**
 * 秒杀活动视图对象 mall_seckill
 *
 * @author pengles
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = MallSeckill.class)
public class MallSeckillVo 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 seckillPrice;

    /**
     * 秒杀库存
     */
    @ExcelProperty(value = "秒杀库存")
    private Integer seckillStock;

    /**
     * 开始时间
     */
    @ExcelProperty(value = "开始时间")
    private Date startTime;

    /**
     * 结束时间
     */
    @ExcelProperty(value = "结束时间")
    private Date endTime;

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

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

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

}
