package com.snack.server.module.favorite.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * 收藏列表 VO（含商品信息）
 */
@Data
@Schema(description = "收藏项")
public class FavoriteVO implements Serializable {

    @Schema(description = "收藏记录 ID")
    private Long id;

    @Schema(description = "商品 SPU ID")
    private Long productId;

    @Schema(description = "商品名称")
    private String productName;

    @Schema(description = "商品主图")
    private String productMainImage;

    @Schema(description = "起售价")
    private BigDecimal minPrice;

    @Schema(description = "商品状态：0-下架 1-上架")
    private Integer productStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "收藏时间")
    private LocalDateTime createTime;
}
