using Model.Entity.BaseModel;
using System.Collections.Generic;
namespace Model.Entity.User
{
///
/// 用户实体类
///
public class UserEntity : MongoBaseEntity
{
///
/// 基础信息,包括昵称、头像等基本信息
///
public UserBaseInfo BaseInfo= new UserBaseInfo();
///
/// 实名认证信息
///
public RealNameInfo RealName { get; set; }
///
/// 保险箱信息
///
public SafeBoxInfo SafeBox { get; set; } = new SafeBoxInfo();
///
/// 签到
///
public SignInfo Sign { get; set; }
///
/// 已有炮台列表
///
public List CannonList { get; set; }=new List();
///
/// 正在使用的炮台信息
///
public BaseUserProp CannonUsing { get; set; }
///
/// 使用中的翅膀
///
public BaseUserProp WingUsing { get; set; }
///
/// 已有翅膀列表
///
public List WingList { get; set; } = new List();
///
/// 使用中的战神
///
public BaseUserProp GodWarUsing { get; set; }
///
/// 已有战神列表
///
public List GodWarList { get; set; } = new List();
///
/// 我的背包
///
public List Props { get; set; } = new List();
///
/// 资产信息、
///
public Assets Assets { get; set; } = new Assets();
///
/// 注册时间戳,单位为秒
///
public long CreateTime { get; set; } = 0;
///
/// 封号信息
///
public BanInfo BanInfo { get; set; }
///
/// 玩家统计信息
///
public StaticInfo Static { get; set; } = new StaticInfo();
}
///
/// 签到信息
///
public class SignInfo
{
///
/// 是否签到,默认为false
///
public bool IsSign { get; set; } = false;
///
/// 签到时间戳,单位为秒
///
public long SignTime { get; set; } = 0;
}
///
/// 玩家统计信息
///
public class StaticInfo
{
///
/// 最后一次登录时间戳,单位为秒
///
public long LastLoginTime { get; set; } = 0;
///
/// 最后一次登录IP地址
///
public string LastLoginIp { get; set; } = "";
///
/// 在线时长
///
public long OnlineTime { get; set; } = 0;
///
/// 游戏时长
///
public long GameTime { get; set; } = 0;
///
/// 所在房间
///
public string RoomNumber { get; set; } = "";
///
/// 累计充值
///
public double TotalRecharge { get; set; } = 0;
///
/// 累计消费金币
///
public int TotalConsumeGold { get; set; } = 0;
///
/// 累计消费钻石
///
public int TotalConsumeDiamond { get; set; } = 0;
///
/// 可以领取的次数
///
public int ReliefGoldCount {get; set; } = 0;
}
///
/// 封号信息
///
public class BanInfo
{
///
/// 是否封号,true为封号状态,false为正常状态。默认值为false(未被封号)。
///
public bool IsBan { get; set; } = false;
///
/// 封号时间
///
public long BanTime { get; set; } = 0;
///
/// 封号原因
///
public string BanReason { get; set; } = "";
///
/// 封号天数
///
public int BanDays { get; set; } = 0;
///
/// 封号到期时间
///
public long BanEndTime { get; set; } = 0;
}
///
/// 用户基本信息
///
public class UserBaseInfo
{
///
/// 用户名
///
public string UserName { get; set; } = string.Empty;
///
/// 密码
///
public string Password { get; set; } = string.Empty;
///
/// 序号,唯一标识用户身份的序号
///
public string Number { get; set; } = string.Empty;
///
/// 头像地址
///
public string AvatarUrl { get; set; } = string.Empty;
///
/// 手机号
///
public string Mobile { get; set; } = string.Empty;
///
/// 第三方登陆信息
///
public string WXOpenId { get; set; } = string.Empty;
///
/// 渠道编号
///
public string Channel { get; set; } = string.Empty;
///
/// 是否红色昵称
///
public bool IsRedName { get; set; } = false;
}
///
/// 资产信息
///
public class Assets
{
///
/// 钻石数量
///
public int Diamond { get; set; } = 0;
///
/// 金币数量
///
public int Gold { get; set; } = 0;
///
/// 等级
///
public int Level { get; set; } = 1;
///
/// 经验值
///
public int Exp { get; set; } = 0;
///
/// Vip签到加成
///
public double VipSignInAdd { get; set; } = 0;
///
/// Vip等级
///
public int VipLevel { get; set; } = 0;
///
/// 未领取的Vip礼包集合
///
public List VipGift { get; set; } = new List();
///
/// vip每日礼包是否领取
///
public bool IsVipDayGift { get; set; } = false;
///
/// 会员卡签到加成
///
public double UserCardInAdd { get; set; } = 0;
///
/// 会员卡等级 1 周卡 2 月卡 3 年卡
///
public int UserCardLevel { get; set; } = 0;
///
/// 会员卡到期时间
///
public long UserCardEndTime { get; set; } = 0;
///
/// 月卡每日礼包是否领取
///
public bool IsUserCardDayGift { get; set; } = false;
///
/// 未领取的权益礼包集合
///
public List UserCardGift { get; set; } = new List();
}
///
/// 实名信息
///
public class RealNameInfo
{
///
/// 真实名字
///
public string RealName { get; set; } = string.Empty;
///
/// 身份证号
///
public string IDCard { get; set; } = string.Empty;
}
///
/// 保险箱
///
public class SafeBoxInfo
{
///
/// 存储金额
///
public int Amount { get; set; } = 0;
///
/// 密码
///
public string Password { get; set; } = "";
///
/// 存储时间
///
public long SaveTime { get; set; } = 0;
}
///
/// 用户道具
///
public class BaseUserProp : BaseProduct
{
///
/// 是否试用
///
public bool IsTrial { get; set; } = false;
///
/// 体验截止时间
///
public long TrialEndTime { get; set; } = 0;
}
}