fix chore

This commit is contained in:
2025-12-04 03:08:29 +08:00
parent c6a95fa28d
commit 4e2bb49e86
100 changed files with 641 additions and 59800 deletions

View File

@@ -14,4 +14,8 @@
<ProjectReference Include="..\Atomx.Utils\Atomx.Utils.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Utils\" />
</ItemGroup>
</Project>

View File

@@ -1,9 +0,0 @@
namespace Atomx.Common.Configuration
{
public static class StorageKeys
{
public const string JWTTokenKeyName = "token";
public const string RefreshTokenKeyName = "refresh";
}
}

View File

@@ -1,4 +1,4 @@
namespace Atomx.Common.Constant
namespace Atomx.Common.Constants
{
/// <summary>

View File

@@ -1,4 +1,4 @@
namespace Atomx.Common.Utils
namespace Atomx.Common.Constants
{
public static class ClaimKeys
{

View File

@@ -1,4 +1,4 @@
namespace Atomx.Common.Constant
namespace Atomx.Common.Constants
{
public static class Permissions
{

View File

@@ -0,0 +1,13 @@
namespace Atomx.Common.Constants
{
/// <summary>
/// 本地/浏览器存储键名,客户端与服务端共享常量以保证一致性
/// - 在 WASM 中用于 Blazored.LocalStorage
/// - Key 名称与现有 AuthHeaderHandler 保持一致: "accessToken", "refreshToken"
/// </summary>
public static class StorageKeys
{
public const string AccessToken = "accessToken";
public const string RefreshToken = "refreshToken";
}
}

View File

@@ -46,7 +46,7 @@ namespace Atomx.Common.Entities
/// 令牌回收时间
/// </summary>
[Column(TypeName = "timestamptz")]
public DateTime RevokedTime { get; set; }
public DateTime? RevokedTime { get; set; }
/// <summary>
/// 用户IP

View File

@@ -0,0 +1,8 @@
namespace Atomx.Common.Models
{
public class RefreshRequest
{
public string Token { get; set; } = string.Empty;
public string RefreshToken { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Atomx.Common.Models
{
public class RevokeRequest
{
public string RefreshToken { get; set; } = string.Empty;
}
}