2025-03-28 22:13:41 +08:00
|
|
|
|
using LMS.Common.Enums;
|
|
|
|
|
|
using LMS.Repository.DTO.UserDto;
|
|
|
|
|
|
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.DTO.OtherDto
|
|
|
|
|
|
{
|
|
|
|
|
|
public class MachineAuthorizationDto
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public required string ID { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 机器码或者是授权码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public required string MachineID { get; set; }
|
|
|
|
|
|
|
2025-05-16 17:48:10 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 可用时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public required SoftwareControlValidityEnum ExpiryTime { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 授权使用状态
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public required MachineAuthorizationUseTypeEnum UseType { get; set; }
|
|
|
|
|
|
|
2025-03-28 22:13:41 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 授权软件类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public required MachineAuthorizationEnum Type { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 授权日期
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public DateTime AuthorizedDate { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 过期日期
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public DateTime ExpiryDate { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 授权码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public required string AuthorizationCode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建用户
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public UserBaseDto? CreatedUser { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime CreatedDate { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新用户ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public UserBaseDto? UpdatedUser { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime UpdatedDate { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|