Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 8f2b8f6

Browse files
committed
feat: 实现客户端 MAC 验证与 Cyrene_MSP
1 parent e64c2ee commit 8f2b8f6

21 files changed

+1280
-23
lines changed

ClassIsland.ManagementServer.Server/ClassIsland.ManagementServer.Server.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="8.0.6" />
2525
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" />
2626
<PackageReference Include="Pastel" Version="6.0.1" />
27+
<PackageReference Include="PgpCore" Version="6.5.2" />
2728
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="8.0.2" />
2829
<PackageReference Include="Spectre.Console" Version="0.50.0" />
2930
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />

ClassIsland.ManagementServer.Server/Entities/Client.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ public partial class Client : IObjectWithTime
6868
/// </summary>
6969
public DateTime UpdatedTime { get; set; } = DateTime.Now;
7070

71+
/// <summary>
72+
/// 客户端 MAC 地址
73+
/// </summary>
74+
[MaxLength(16)]
75+
public string Mac { get; set; } = "";
76+
7177
[ForeignKey("Id")]
7278
public virtual AbstractClient AbstractClient { get; set; } = new();
7379
}

0 commit comments

Comments
 (0)