XP.Common 类库中新增授权管理(License Management)功能模块,支持两种授权模式:CLMS 正式授权和临时测试模式。开发统一的授权服务接口,并在主项目中完成集成。

This commit is contained in:
QI Mingxuan
2026-05-15 15:50:35 +08:00
parent ad719d157b
commit 94f0649af8
21 changed files with 1153 additions and 1564 deletions
+17
View File
@@ -0,0 +1,17 @@
namespace XP.Common.License.Enums;
/// <summary>
/// 授权模式枚举 | License mode enumeration
/// </summary>
public enum LicenseMode : int
{
/// <summary>
/// CLMS 正式授权 | CLMS formal authorization
/// </summary>
Clms = 0,
/// <summary>
/// 临时测试模式(15分钟)| Temporary test mode (15 minutes)
/// </summary>
TemporaryTest = 885
}
+17
View File
@@ -0,0 +1,17 @@
namespace XP.Common.License.Enums;
/// <summary>
/// 授权状态枚举 | License state enumeration
/// </summary>
public enum LicenseState : int
{
/// <summary>
/// 授权成功 | Authorization successful
/// </summary>
Success = 10,
/// <summary>
/// 授权失败 | Authorization failed
/// </summary>
Fail = 20
}