mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 07:06:34 +00:00
switch to hardware string from object
This commit is contained in:
@@ -35,10 +35,10 @@ public enum ExceptionEnum
|
||||
|
||||
WrongEmail = 37,
|
||||
|
||||
[Description("HardwareInfo mismatch! You are not authorized to access this resource from this hardware.")]
|
||||
[Description("Hardware mismatch! You are not authorized to access this resource from this hardware.")]
|
||||
HardwareIdMismatch = 40,
|
||||
|
||||
[Description("HardwareInfo should contain information about this hardware.")]
|
||||
[Description("Hardware should be not empty.")]
|
||||
BadHardware = 45,
|
||||
|
||||
[Description("Wrong resource file name.")]
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace Azaion.Common.Entities;
|
||||
|
||||
public class HardwareInfo
|
||||
{
|
||||
public string CPU { get; set; } = null!;
|
||||
public string GPU { get; set; } = null!;
|
||||
public string MacAddress { get; set; } = null!;
|
||||
public string Memory { get; set; } = null!;
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
using Azaion.Common.Entities;
|
||||
using FluentValidation;
|
||||
|
||||
namespace Azaion.Common.Requests;
|
||||
@@ -6,7 +5,7 @@ namespace Azaion.Common.Requests;
|
||||
public class GetResourceRequest
|
||||
{
|
||||
public string Password { get; set; } = null!;
|
||||
public HardwareInfo Hardware { get; set; } = null!;
|
||||
public string Hardware { get; set; } = null!;
|
||||
public string FileName { get; set; } = null!;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user