package com.yingpai.miniapp.domain.vo;

import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

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

/**
 * 支付订单VO
 */
@Data
public class PaymentOrderVo {
    
    @ExcelProperty(value = "订单ID")
    private Long id;
    
    @ExcelProperty(value = "订单号")
    @ColumnWidth(25)
    private String orderNo;
    
    @ExcelProperty(value = "用户ID")
    private Long userId;
    
    @ExcelProperty(value = "用户昵称")
    private String nickname;
    
    @ExcelProperty(value = "手机号")
    private String phone;
    
    @ExcelProperty(value = "池类型")
    private Integer poolType;
    
    @ExcelProperty(value = "池类型名称")
    private String poolTypeName;
    
    @ExcelProperty(value = "订单金额")
    private BigDecimal amount;
    
    @ExcelProperty(value = "订单状态")
    private Integer orderStatus;
    
    @ExcelProperty(value = "订单状态名称")
    private String orderStatusName;
    
    @ExcelProperty(value = "微信交易号")
    @ColumnWidth(30)
    private String transactionId;
    
    @ExcelProperty(value = "支付时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payTime;
    
    @ExcelProperty(value = "创建时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
