更新密码数据123

This commit is contained in:
GukSang.Jin
2026-06-15 10:28:16 +08:00
parent 2fc1dd89a2
commit 147ab67ea8
9 changed files with 1038 additions and 10 deletions

View File

@@ -0,0 +1,42 @@
using System;
namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.Models
{
public enum LicenseStage
{
FirstPeriod,
SecondPeriod,
Permanent
}
public enum LicenseCheckState
{
NotInitialized,
Valid,
Expired,
Tampered
}
public sealed record PasswordSecret(string Salt, string Hash);
public sealed record LicenseData(
string InstallId,
LicenseStage Stage,
DateTime StageStartedUtc,
DateTime LastTrustedUtc,
int FirstPeriodMonths,
int SecondPeriodMonths,
PasswordSecret AdminPassword,
PasswordSecret FirstUnlockPassword,
PasswordSecret SecondUnlockPassword);
public sealed record LicenseCheckResult(
LicenseCheckState State,
LicenseStage Stage,
DateTime? ExpiresUtc,
string Message)
{
public bool CanUseSoftware => State == LicenseCheckState.Valid;
public bool RequiresUnlock => State == LicenseCheckState.Expired;
}
}