using Hotline.Share.Enums.Snapshot;
using SqlSugar;
using System.ComponentModel;
using XF.Domain.Repository;
using Hotline.Orders;
using Hotline.Share.Enums.User;
namespace Hotline.Snapshot;
///
/// 随手拍用户微信小程序登录信息
///
[Description("小程序账号信息")]
public class ThirdAccount : CreationSoftDeleteEntity
{
///
/// 关联用户信息
/// 如果是市民: 关联
/// 如果是网格员: 关联
///
[SugarColumn(ColumnDescription = "关联用户信息")]
public string? UserId { get; set; }
///
/// 用户类型
/// 注册时根据手机号码判断是否是 网格员
///
[SugarColumn(ColumnDescription = "用户类型")]
public EReadPackUserType CitizenType { get; set; }
///
/// 电话
///
[SugarColumn(ColumnDescription = "电话")]
public string? PhoneNumber { get; set; }
///
/// 第三方平台的Id
/// 例如: 微信的OpenId
///
[SugarColumn(ColumnDescription = "第三方平台的Id")]
public string OpenId { get; set; }
///
/// 第三方平台的SessionKey
/// 例如: 微信SessionKey
///
[SugarColumn(ColumnDescription = "第三方平台的SessionKey")]
public string? SessionKey { get; set; }
///
/// 账号类型
///
public EThirdType AccountType { get; set; }
///
/// 历史已经领取金额总和(单位:元)
///
[SugarColumn(ColumnDescription = "历史已经领取金额总和(单位:元)")]
public double TotalAmount { get; set; }
///
/// 用户头像Url
///
[SugarColumn(ColumnDescription = "用户头像Url")]
public string? HeadImgUrl { get; set; }
///
/// 用户自己填的邀请码
///
[SugarColumn(ColumnDescription = "用户自己填的邀请码")]
public string? InvitationCode { get; set; }
///
/// 用户昵称
///
[SugarColumn(ColumnDescription = "用户昵称")]
public string? UserName { get; set; }
}