package com.sz.admin.system.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

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

import cn.idev.excel.annotation.ExcelIgnore;
import cn.idev.excel.annotation.ExcelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * Product返回vo
 * </p>
 *
 * @author Lz
 * @since 2026-01-22
 */
@Data
@Schema(description = "Product返回vo")
public class ProductVO {

    @ExcelIgnore
    @Schema(description = "主键ID")
    private Long id;

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

    @ExcelProperty(value = "价格")
    @Schema(description = "价格")
    private BigDecimal price;

    @ExcelProperty(value = "状态(0停用 1启用)")
    @Schema(description = "状态(0停用 1启用)")
    private Integer status;

    @ExcelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

}