package com.tzy.base.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tzy.common.annotation.Excel;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
public class UserPointRecordDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 当前积分 */
    @Excel(name = "当前积分")
    private Long currPoint;

    /** 上次积分 */
    @Excel(name = "上次积分")
    private Long lastPoint;

    /** 增加积分 */
    @Excel(name = "增加积分")
    private Integer changePoint;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
