2025-03-28 22:13:41 +08:00
|
|
|
|
using LMS.Common.Enums;
|
2025-05-16 17:48:10 +08:00
|
|
|
|
using Newtonsoft.Json;
|
2025-03-28 22:13:41 +08:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2025-05-16 17:48:10 +08:00
|
|
|
|
using static LMS.Common.Enums.SoftwareControlEnum;
|
2025-03-28 22:13:41 +08:00
|
|
|
|
|
|
|
|
|
|
namespace LMS.Repository.Other
|
|
|
|
|
|
{
|
|
|
|
|
|
public class AddMachineAuthorization
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 机器码或者是授权码
|
|
|
|
|
|
/// </summary>
|
2025-05-16 17:48:10 +08:00
|
|
|
|
public string? MachineID { get; set; }
|
2025-03-28 22:13:41 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-05-16 17:48:10 +08:00
|
|
|
|
/// 可用时间
|
2025-03-28 22:13:41 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required]
|
2025-05-16 17:48:10 +08:00
|
|
|
|
public required SoftwareControlValidityEnum ExpiryTime { get; set; }
|
2025-03-28 22:13:41 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 过期日期
|
|
|
|
|
|
/// </summary>
|
2025-05-16 17:48:10 +08:00
|
|
|
|
|
|
|
|
|
|
public DateTime? ExpiryDate { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 授权使用状态
|
|
|
|
|
|
/// </summary>
|
2025-03-28 22:13:41 +08:00
|
|
|
|
[Required]
|
2025-05-16 17:48:10 +08:00
|
|
|
|
public required MachineAuthorizationUseTypeEnum UseType { get; set; }
|
2025-03-28 22:13:41 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 授权码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public required string AuthorizationCode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 授权软件类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public required MachineAuthorizationEnum Type { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|