package com.greenorange.promotion.model.vo.userMainInfo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 用户主要信息 视图对象
 */
@Data
@Schema(description = "用户主要信息 视图对象")
public class UserMainInfoVO implements Serializable {

    /**
     * 用户主要信息ID
     */
    @Schema(description = "用户主要信息ID", example = "1")
    private Long id;

    /**
     * 团队人数（不包括自己）
     */
    @Schema(description = "团队人数（不包括自己）", example = "8")
    private Integer teamSize;

    /**
     * 团队收益
     */
    @Schema(description = "团队收益", example = "25.00")
    private BigDecimal teamEarnings;

    /**
     * 给上级带来的收益
     */
    @Schema(description = "给上级带来的收益", example = "8.00")
    private BigDecimal parentEarnings;

    /**
     * 当前余额
     */
    @Schema(description = "当前余额", example = "10.00")
    private BigDecimal currentBalance;

    /**
     * 提现中的金额
     */
    @Schema(description = "提现中的金额", example = "15.00")
    private BigDecimal withdrawalAmount;

    /**
     * 已提现的金额
     */
    @Schema(description = "已提现的金额", example = "20.00")
    private BigDecimal withdrawnAmount;

    /**
     * 累计收入
     */
    @Schema(description = "累计收入", example = "100.00")
    private BigDecimal totalIncome;

    /**
     * 统一抽佣比例
     */
    @Schema(description = "统一抽佣比例", example = "5")
    private BigDecimal uniteRate;

    /**
     * 用户id
     */
    @Schema(description = "用户id", example = "1")
    private Long userId;

    /**
     * 邀请二维码
     */
    @Schema(description = "邀请二维码", example = "3KD3H8D7")
    private String inviteQrCode;


    @Serial
    private static final long serialVersionUID = 1L;
}
