package com.ylx.massage.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@Data
@ApiModel("积分订单管理分页列表行VO")
public class ProductOrderPageItemVo {

    @ApiModelProperty("订单ID")
    private String id;

    @ApiModelProperty("订单号")
    private String orderNo;

    @ApiModelProperty("用户openId")
    private String openId;

    @ApiModelProperty("电话号码")
    private String phone;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("订单状态：0待付款 1待发货 2已发货 3待收货 4已收货 5换货待审核 6换货中 7退货待审核")
    private Integer orderStatus;

    @ApiModelProperty("支付状态：0未支付 1已支付 2支付失败 3已退款")
    private Integer payStatus;

    @ApiModelProperty("实付金额")
    private BigDecimal payAmount;

    @ApiModelProperty("使用积分数量")
    private Integer pointsUsed;

    @ApiModelProperty("付款类型（1：积分 2：金额 3：积分+金额）")
    private Integer paymentType;

    @ApiModelProperty("快递单号")
    private String logisticsNo;

    @ApiModelProperty("发货时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime deliveryTime;

    @ApiModelProperty("下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("商品ID")
    private Long productId;

    @ApiModelProperty("购买数量")
    private Integer quantity;

}
