ThirdAccount.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using DataTransmission.Enum;
  2. using SqlSugar;
  3. using System.ComponentModel;
  4. namespace SnapshotWinFormsApp.Entities.NewHotline;
  5. /// <summary>
  6. /// 随手拍用户微信小程序登录信息
  7. /// </summary>
  8. [SugarTable("third_account")]
  9. [Description("小程序账号信息")]
  10. public class ThirdAccount : CreationSoftDeleteEntity
  11. {
  12. /// <summary>
  13. /// 外部业务唯一标识
  14. /// </summary>
  15. [SugarColumn(ColumnDescription = "外部业务唯一标识")]
  16. public string? ExternalId { get; set; }
  17. /// <summary>
  18. /// 电话
  19. /// </summary>
  20. [SugarColumn(ColumnDescription = "电话")]
  21. public string? PhoneNumber { get; set; }
  22. /// <summary>
  23. /// 第三方平台的Id
  24. /// 例如: 微信的OpenId
  25. /// </summary>
  26. [SugarColumn(ColumnDescription = "第三方平台的Id")]
  27. public string OpenId { get; set; }
  28. /// <summary>
  29. /// 第三方平台的SessionKey
  30. /// 例如: 微信SessionKey
  31. /// </summary>
  32. [SugarColumn(ColumnDescription = "第三方平台的SessionKey")]
  33. public string? SessionKey { get; set; }
  34. /// <summary>
  35. /// 账号类型
  36. /// </summary>
  37. public EThirdType AccountType { get; set; } = EThirdType.WeChat;
  38. /// <summary>
  39. /// 用户头像Url
  40. /// </summary>
  41. [SugarColumn(ColumnDescription = "用户头像Url")]
  42. public string? HeadImgUrl { get; set; }
  43. /// <summary>
  44. /// 用户昵称
  45. /// </summary>
  46. [SugarColumn(ColumnDescription = "用户昵称")]
  47. public string? UserName { get; set; }
  48. /// <summary>
  49. /// 用户在开放平台的唯一标识符。本字段在满足一定条件的情况下才返回。具体参看:https://mp.weixin.qq.com/debug/wxadoc/dev/api/uinionID.html
  50. /// </summary>
  51. [SugarColumn(ColumnDescription = "用户在开放平台的唯一标识符")]
  52. public string? UnIonId { get; set; }
  53. /// <summary>
  54. /// 应用类型
  55. /// </summary>
  56. [SugarColumn(ColumnDescription = "应用类型", DefaultValue = "1")]
  57. public EAppType AppType { get; set; } = EAppType.Snapshot;
  58. }