package com.gxwebsoft.shop.vo;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 秒杀活动
 *
 * @author xm
 * @since 2026-04-22 17:18:17
 */
@Data
public class ShopFlashSaleActivityVO implements Serializable {

    @Schema(description = "秒杀活动编号")
    private Integer id;

    @Schema(description = "秒杀活动名称")
    private String name;

    @Schema(description = "秒杀活动商品")
    private Integer goodsId;

    @Schema(description = "秒杀活动商品名称")
    private String goodsName;

    @Schema(description = "商品skuId")
    private Integer skuId;

    @Schema(description = "商品图片地址")
    private String image;

    @Schema(description = "单位")
    private String unitName;

    @Schema(description = "商品数量")
    private Integer num;

    @Schema(description = "秒杀价")
    private BigDecimal price;

    @Schema(description = "商品单价")
    private BigDecimal goodsPrice;

    @Schema(description = "商品总价")
    private BigDecimal goodsTotalPrice;

    @Schema(description = "活动状态 0-开启 1-关闭")
    private Integer status;

    @Schema(description = "活动开始时间")
    private LocalDateTime startTime;

    @Schema(description = "活动结束时间")
    private LocalDateTime endTime;

    @Schema(description = "活动限购数量")
    private Integer saleLimit;

    @Schema(description = "库存")
    private Integer stock;

    @Schema(description = "展示类型，0：普通用户，1：新用户")
    private Integer displayType;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "排序")
    private Integer sortNumber;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建者")
    private String creator;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新者")
    private String updater;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "是否删除")
    @TableLogic
    private Integer deleted;

}
