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 UserSubscriptionVo {
    
    @ExcelProperty(value = "订阅ID")
    private Long id;
    
    @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 String orderNo;
    
    @ExcelProperty(value = "订阅金额")
    private BigDecimal amount;
    
    @ExcelProperty(value = "开始时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    
    @ExcelProperty(value = "到期时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expireTime;
    
    @ExcelProperty(value = "状态")
    private Integer status;
    
    @ExcelProperty(value = "状态名称")
    private String statusName;
    
    @ExcelProperty(value = "创建时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
