using DataTransmission.Enum; using SqlSugar; using System.ComponentModel; namespace SnapshotWinFormsApp.Entities.NewHotline; /// /// 随手拍用户微信小程序登录信息 /// [SugarTable("third_account")] [Description("小程序账号信息")] public class ThirdAccount : CreationSoftDeleteEntity { /// /// 外部业务唯一标识 /// [SugarColumn(ColumnDescription = "外部业务唯一标识")] public string? ExternalId { 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; } = EThirdType.WeChat; /// /// 用户头像Url /// [SugarColumn(ColumnDescription = "用户头像Url")] public string? HeadImgUrl { get; set; } /// /// 用户昵称 /// [SugarColumn(ColumnDescription = "用户昵称")] public string? UserName { get; set; } /// /// 用户在开放平台的唯一标识符。本字段在满足一定条件的情况下才返回。具体参看:https://mp.weixin.qq.com/debug/wxadoc/dev/api/uinionID.html /// [SugarColumn(ColumnDescription = "用户在开放平台的唯一标识符")] public string? UnIonId { get; set; } /// /// 应用类型 /// [SugarColumn(ColumnDescription = "应用类型", DefaultValue = "1")] public EAppType AppType { get; set; } = EAppType.Snapshot; }