package com.sckw.order.api.model;

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

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


@Data
public class TradeVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 7143305943655450894L;
    private Long id;

    /**
     * 订单编号
     */
    @JsonProperty("tOrderNo")
    @Schema(description = "订单编号")
    private String tOrderNo;

    @Schema(description = "商品名称")
    private String goodsName;
    /**
     * 商品单价
     */
    @Schema(description = "商品单价")
    private String unitPrice;
    @Schema(description = "企业名称")
    private String firmName;

    @Schema(description = "状态")
    private Integer status;

    /**
     * 下单量
     */
    @Schema(description = "下单量")
    private BigDecimal amount;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
