修改完善了其他设置中的软件授权码的设置
修改部分权限控制
This commit is contained in:
2025-05-16 17:48:10 +08:00
parent 0a2ba8bb1a
commit 647f2b75c9
15 changed files with 378 additions and 35 deletions
@@ -1,5 +1,7 @@
using LMS.Common.Enums;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using static LMS.Common.Enums.SoftwareControlEnum;
namespace LMS.Repository.Other
{
@@ -8,20 +10,25 @@ namespace LMS.Repository.Other
/// <summary>
/// 机器码或者是授权码
/// </summary>
[Required]
public required string MachineID { get; set; }
public string? MachineID { get; set; }
/// <summary>
/// 授权日期
/// 可用时间
/// </summary>
[Required]
public DateTime AuthorizedDate { get; set; }
public required SoftwareControlValidityEnum ExpiryTime { get; set; }
/// <summary>
/// 过期日期
/// </summary>
public DateTime? ExpiryDate { get; set; }
/// <summary>
/// 授权使用状态
/// </summary>
[Required]
public DateTime ExpiryDate { get; set; }
public required MachineAuthorizationUseTypeEnum UseType { get; set; }
/// <summary>
/// 授权码