71 lines
1.5 KiB
C#
Raw Normal View History

2025-12-17 11:12:13 +08:00
using YD_Event.Core.Enum;
2025-12-17 10:32:52 +08:00
2025-12-17 11:12:13 +08:00
namespace YD_Event.Core.Entities;
2025-12-17 10:32:52 +08:00
/// <summary>
/// 博客授权用户
/// </summary>
2026-02-26 18:29:08 +08:00
public class AuthAccount : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime
2025-12-17 10:32:52 +08:00
{
/// <summary>
/// 授权唯一标识
/// </summary>
public string OAuthId { get; set; }
/// <summary>
/// 授权类型
/// </summary>
public string Type { get; set; }
/// <summary>
/// 博主标识
/// </summary>
public bool IsBlogger { get; set; }
/// <summary>
/// 姓名(昵称)
/// </summary>
[SugarColumn(Length = 64)]
public string? Name { get; set; }
/// <summary>
/// 性别
/// </summary>
public Gender Gender { get; set; }
/// <summary>
/// 头像
/// </summary>
[SugarColumn(Length = 256)]
public string? Avatar { get; set; }
/// <summary>
/// 邮箱
/// </summary>
[SugarColumn(Length = 128)]
public string? Email { get; set; }
/// <summary>
2026-02-26 18:29:08 +08:00
/// 标记删除
2025-12-17 10:32:52 +08:00
/// </summary>
2026-02-26 18:29:08 +08:00
public bool DeleteMark { get; set; }
2025-12-17 10:32:52 +08:00
/// <summary>
2026-02-26 18:29:08 +08:00
/// 创建人
2025-12-17 10:32:52 +08:00
/// </summary>
2026-02-26 18:29:08 +08:00
public long CreatedUserId { get; set; }
2025-12-17 10:32:52 +08:00
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedTime { get; set; }
2026-02-26 18:29:08 +08:00
/// <summary>
/// 更新人
/// </summary>
public long? UpdatedUserId { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdatedTime { get; set; }
2025-12-17 10:32:52 +08:00
}