package com.xiaoniu.system.order.storeorder.vo;

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

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author haoxuyang
 * @Date 2024/10/16 9:15
 */
@Data
@Schema(description = "团购订单列表响应参数VO")
public class GroupOrderListVO {

    @Schema(description = "订单ID")
    private Long orderId;

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

    @Schema(description = "订单编号")
    private String orderNo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "下单时间")
    private Date orderCreateTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "成团时间")
    private Date groupFormationTime;

    @Schema(description = "订单类型")
    private String orderType;

    @Schema(description = "商品个数")
    private Integer goodsNum;

    @Schema(description = "支付金额")
    private BigDecimal paymentAmount;

    @Schema(description = "订单状态 0待支付 1待发货 2待使用 3已完成 4待评价 5退款/售后 6已结算 7未成团 8已成团 9进行中 10已评论 90已取消")
    private Integer status;

}
