/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.ldt.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-09-23
 */
@Data
@TableName("ldt_login_user")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "LoginUser对象", description = "LoginUser对象")
public class LoginUser extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 渠道积分
	 */
	@ApiModelProperty(value = "渠道积分")
	private BigDecimal channelPoint;
	/**
	 * 账户余额
	 */
	@ApiModelProperty(value = "账户余额")
	private BigDecimal balance;
	/**
	 * 手机号码
	 */
	@ApiModelProperty(value = "手机号码")
	private String phone;
	/**
	 * 用户openID
	 */
	@ApiModelProperty(value = "用户openID")
	private String openid;
	/**
	 * 用户头像
	 */
	@ApiModelProperty(value = "用户头像")
	private String avatar;
	/**
	 * 用户昵称
	 */
	@ApiModelProperty(value = "用户昵称")
	private String nickName;
	/**
	 * 男、女
	 */
	@ApiModelProperty(value = "男、女")
	private String sex;
	/**
	 * 出生日期
	 */
	@ApiModelProperty(value = "出生日期")
	private LocalDate birth;
	/**
	 * 总价值额度
	 */
	@ApiModelProperty(value = "总价值额度")
	private BigDecimal totalValue;
	/**
	 * 用户身份,普通用户,渠道代理，城市代理
	 */
	@ApiModelProperty(value = "用户身份,普通用户,渠道代理，城市代理")
	private String userType;
	/**
	 * 可提现余额【代理商】
	 */
	@ApiModelProperty(value = "可提现余额【代理商】")
	private BigDecimal availableBalance;
	/**
	 * 总余额【代理商】
	 */
	@ApiModelProperty(value = "总余额【代理商】")
	private BigDecimal totalBalance;
	/**
	 * 当前冻结渠道积分
	 */
	@ApiModelProperty(value = "当前冻结渠道积分")
	private BigDecimal frozenPoint;
	/**
	 * 当前冻结普通积分
	 */
	@ApiModelProperty(value = "当前冻结普通积分")
	private BigDecimal frozenBalance;

}
