Initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
namespace RobotNet10.CustomConfigurationEditor.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Model cho ConfigFileMetadata trong frontend (list view)
|
||||
/// </summary>
|
||||
public class ConfigFileMetadataModel
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string ConfigType { get; set; } = string.Empty; // Tên định danh duy nhất
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace RobotNet10.CustomConfigurationEditor.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Model cho ConfigFile trong frontend
|
||||
/// </summary>
|
||||
public class ConfigFileModel
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string ConfigType { get; set; } = string.Empty; // Tên định danh duy nhất
|
||||
public List<ConfigVariableModel> Variables { get; set; } = new();
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace RobotNet10.CustomConfigurationEditor.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Model cho ConfigVariable trong frontend
|
||||
/// </summary>
|
||||
public class ConfigVariableModel
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Type { get; set; } = string.Empty; // "string", "int", "double", "bool", "object", "array", "enum"
|
||||
public object? Value { get; set; }
|
||||
|
||||
// Optional properties
|
||||
public double? Min { get; set; } // Cho int và double (0 nếu không dùng)
|
||||
public double? Max { get; set; } // Cho int và double (0 nếu không dùng)
|
||||
public string Roles { get; set; } = string.Empty; // Roles string (có thể empty)
|
||||
public List<string>? EnumValues { get; set; } // Cho type Enum - danh sách các giá trị cho phép
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user