package com.sqx.modules.invite.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 *  invite_money
 * @author fang 2020-07-28
 */
@Data
public class InviteMoney implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 邀请收益钱包id
     */
    @TableId(type = IdType.ID_WORKER)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     * 总获取收益
     */
    private Double moneySum;

    /**
     * 当前金币
     */
    private Double money;

    /**
     * 累计提现
     */
    private Double cashOut;

    public InviteMoney() {
    }

}
