package com.ruoyi.cai.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

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

/**
 * 充值订单对象 cai_recharge_order
 *
 * @author 77
 * @date 2024-01-03
 */
@Data
@TableName("cai_recharge_order")
public class RechargeOrder implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     *
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    private Long traceId;
    /**
     * 商品ID
     */
    private Long rechargeId;
    /**
     * 商品名称
     */
    private String rechargeName;
    /**
     * 充值紫贝
     */
    private Long rechargeCoin;
    /**
     * 1-充值余额 2-充值收益
     */
    private Integer rechargeType;
    /**
     * 价格
     */
    private BigDecimal price;
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 平台
     */
    private String platformType;
    /**
     * 状态 0-待支付 1-已支付 2-已退款 10-无需支付
     */
    private Integer payStatus;

    private LocalDateTime payTime;
    /**
     * appId
     */
    private String appid;
    /**
     *
     */
    private String returnContent;
    /**
     *
     */
    private String operateIp;
    /**
     * 是否为后台管理新增
     */
    private Boolean admin;

    private Long adminId;

    private String remark;

    private LocalDateTime createTime;

}
