
package com.yami.shop.bean.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PointsRecordVo {

    @ApiModelProperty("订单编号")
    @ExcelProperty("订单编号")
    private String orderNumber;

    @ApiModelProperty("姓名")
    @ExcelProperty("姓名")
    private String realName;

    @ApiModelProperty("手机号")
    @ExcelProperty("手机号")
    private String mobile;

    @ApiModelProperty("变动积分")
    @ExcelProperty("变动积分")
    private String variablePoints;

    @ApiModelProperty("变动后积分")
    @ExcelProperty("变动后积分")
    private String currentlyAvailablePoints;

    @ApiModelProperty("创建时间")
    @ExcelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime creationDate;

    @ApiModelProperty("业务类型 CZ-充值 XD-下单 TK-退款 GQ-过期")
    @ExcelProperty("业务类型")
    private String businessType;

}
