XFEExtension.NetCore.ServerInteractive
[DLL] Server interaction extension, including user identity verification and querying in conjunction with AutoConfig
关注
0
Fork
0
Star
0
using XFEExtension.NetCore.ServerInteractive.Interfaces;
namespace XFEExtension.NetCore.ServerInteractive.Models.UserModels;
/// <summary>
/// 用户标准模型
/// </summary>
public class User : IUserInfo
{
/// <inheritdoc cref="IUserFaceInfo.Id" />
public string Id { get; set; } = Guid.NewGuid().ToString("N");
/// <inheritdoc/>
public long Version { get; set; }
/// <inheritdoc/>
public string NickName { get; set; } = string.Empty;
/// <inheritdoc/>
public int PermissionLevel { get; set; } = 0;
/// <inheritdoc/>
public string UserName { get; set; } = string.Empty;
/// <inheritdoc/>
public string Password { get; set; } = string.Empty;
/// <summary>密码哈希凭据;首次成功验证旧明文密码时自动生成。</summary>
public PasswordCredential? PasswordCredential { get; set; }
/// <inheritdoc/>
public bool Enable { get; set; } = true;
}
using XFEExtension.NetCore.ServerInteractive.Interfaces;
namespace XFEExtension.NetCore.ServerInteractive.Models.UserModels;
/// <summary>
/// 用户标准模型
/// </summary>
public class User : IUserInfo
{
/// <inheritdoc cref="IUserFaceInfo.Id" />
public string Id { get; set; } = Guid.NewGuid().ToString("N");
/// <inheritdoc/>
public long Version { get; set; }
/// <inheritdoc/>
public string NickName { get; set; } = string.Empty;
/// <inheritdoc/>
public int PermissionLevel { get; set; } = 0;
/// <inheritdoc/>
public string UserName { get; set; } = string.Empty;
/// <inheritdoc/>
public string Password { get; set; } = string.Empty;
/// <summary>密码哈希凭据;首次成功验证旧明文密码时自动生成。</summary>
public PasswordCredential? PasswordCredential { get; set; }
/// <inheritdoc/>
public bool Enable { get; set; } = true;
}