package org.dromara.zhishu.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.zhishu.domain.UserRecharge;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

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



/**
 * 用户充值视图对象 t_user_recharge
 *
 * @author yxy
 * @date 2025-04-26
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = UserRecharge.class)
public class UserRechargeVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 充值类型 1 微信支付 2 支付宝支付 ...
     */
    @ExcelProperty(value = "充值类型 1 微信支付 2 支付宝支付 ...")
    private String rechargType;

    /**
     * 充值金额 单位分
     */
    @ExcelProperty(value = "充值金额 单位分")
    private Long rechargPrice;

    /**
     * 支付成功时间
     */
    @ExcelProperty(value = "支付成功时间")
    private Date successTime;

    /**
     * 支付成功后回调方法中数据字符串
     */
    @ExcelProperty(value = "支付成功后回调方法中数据字符串")
    private String allDataStr;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;


    /**
     * 手续费
     */
    @ExcelProperty(value = "手续费")
    private BigDecimal commission;

    /**
     * 是否充值到余额中
     */
    private String isBalance;

    private Date createTime;
    /**
     * 创建人
     */
    private String createBy;

    /**
     * 日志备注
     */
    private String logTxt;


    /**
     * 原始金额
     */
    private BigDecimal originalPrice;

    /**
     * 更新金额
     */
    private BigDecimal updatePrice;
}
