ThirdAccount.cs 2.3 KB

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