XP.Common 类库中新增授权管理(License Management)功能模块,支持两种授权模式:CLMS 正式授权和临时测试模式。开发统一的授权服务接口,并在主项目中完成集成。
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
namespace XP.Common.License.Configs
|
||||
{
|
||||
/// <summary>
|
||||
/// 授权配置实体 | License configuration entity
|
||||
/// </summary>
|
||||
public class LicenseConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// 授权模式 | License mode
|
||||
/// </summary>
|
||||
public int LicenseMode { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 模块ID | Module ID
|
||||
/// </summary>
|
||||
public ushort ModuleId { get; set; } = 4;
|
||||
|
||||
/// <summary>
|
||||
/// 是否使用SMA | Whether to use SMA
|
||||
/// </summary>
|
||||
public bool UseSma { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 授权状态 | License state
|
||||
/// </summary>
|
||||
public int LicenseState { get; set; } = 20;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user