feat: 初始功能

This commit is contained in:
Shiqvlizi Name
2026-05-23 18:16:50 +08:00
parent a5bfd8792e
commit 9a51259e9e
63 changed files with 5377 additions and 1 deletions

14
Models/AdminSession.cs Normal file
View File

@@ -0,0 +1,14 @@
namespace CloudPrint.Client.Models;
public sealed class AdminSession
{
public int AdminId { get; init; }
public string Username { get; init; } = string.Empty;
public string Nickname { get; init; } = string.Empty;
public int Role { get; init; }
public string AccessToken { get; init; } = string.Empty;
public bool IsAuthenticated => !string.IsNullOrWhiteSpace(AccessToken);
public string DisplayName => string.IsNullOrWhiteSpace(Nickname) ? Username : Nickname;
}