package org.jeecg.modules.app.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.modules.system.app.entity.AppOrderProInfo;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "我的订单分页响应对象")
public class PageOrdersVO implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "部门编号")
    private String orderCode;

    @Schema(description = "商品ID")
    private String productIds;

    @Schema(description = "订单状态")
    private Integer orderStatus;

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

    @Schema(description = "原价")
    private String originalPrice;

    @Schema(description = "实际支付")
    private BigDecimal price;

    @Schema(description = "地点ID")
    private String addressSiteId;

    @Schema(description = "数量")
    private BigDecimal amount;

    @Schema(description = "分钟可退")
    private Integer earlyRefundTime;

    @Schema(description = "是否评论（0-否 1-是）")
    private Integer orEvaluate;

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

    @Schema(description = "过期时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date epxTime;

    @Schema(description = "子订单")
    private List<AppOrderProInfo>  orderProInfoList;

    @Schema(description = "保险订单")
    private List<AppOrderProInfo>  orderInsureList;
}
