WiP
This commit is contained in:
18
MyCompany.MyProject.BackendApi/Models/ComponentDefinition.cs
Normal file
18
MyCompany.MyProject.BackendApi/Models/ComponentDefinition.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace MyCompany.MyProject.BackendApi.Models;
|
||||
|
||||
record ComponentDefinition
|
||||
{
|
||||
public string Code { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public string Icon { get; set; } = string.Empty;
|
||||
public List<ComponentInput> Inputs { get; set; } = new();
|
||||
public List<ComponentOutput> Outputs { get; set; } = new();
|
||||
public string Source { get; set; } = string.Empty;
|
||||
public string Class { get; set; } = string.Empty;
|
||||
public List<string> Methods { get; set; } = new();
|
||||
public string Gui { get; set; } = string.Empty;
|
||||
public string Category { get; set; } = string.Empty;
|
||||
public List<string> Tags { get; set; } = new();
|
||||
public List<PresetDefinition> Presets { get; set; } = new();
|
||||
}
|
||||
10
MyCompany.MyProject.BackendApi/Models/ComponentInput.cs
Normal file
10
MyCompany.MyProject.BackendApi/Models/ComponentInput.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace MyCompany.MyProject.BackendApi.Models;
|
||||
|
||||
record ComponentInput
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Type { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public List<string>? Enum { get; set; }
|
||||
public bool Required { get; set; } = true;
|
||||
}
|
||||
8
MyCompany.MyProject.BackendApi/Models/ComponentOutput.cs
Normal file
8
MyCompany.MyProject.BackendApi/Models/ComponentOutput.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace MyCompany.MyProject.BackendApi.Models;
|
||||
|
||||
record ComponentOutput
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Type { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
}
|
||||
14
MyCompany.MyProject.BackendApi/Models/PresetDefinition.cs
Normal file
14
MyCompany.MyProject.BackendApi/Models/PresetDefinition.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace MyCompany.MyProject.BackendApi.Models;
|
||||
|
||||
record PresetDefinition
|
||||
{
|
||||
public string PresetId { get; set; } = string.Empty;
|
||||
public string PresetName { get; set; } = string.Empty;
|
||||
public string BaseComponentCode { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public string Version { get; set; } = string.Empty;
|
||||
public string Author { get; set; } = string.Empty;
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public Dictionary<string, object> Inputs { get; set; } = new();
|
||||
public Dictionary<string, object> Metadata { get; set; } = new();
|
||||
}
|
||||
8
MyCompany.MyProject.BackendApi/Models/RuntimeRequest.cs
Normal file
8
MyCompany.MyProject.BackendApi/Models/RuntimeRequest.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace MyCompany.MyProject.BackendApi.Models;
|
||||
|
||||
record RuntimeRequest
|
||||
{
|
||||
public string ClassName { get; set; } = string.Empty;
|
||||
public string MethodName { get; set; } = string.Empty;
|
||||
public object? Inputs { get; set; }
|
||||
}
|
||||
7
MyCompany.MyProject.BackendApi/Models/RuntimeResponse.cs
Normal file
7
MyCompany.MyProject.BackendApi/Models/RuntimeResponse.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace MyCompany.MyProject.BackendApi.Models;
|
||||
|
||||
record RuntimeResponse
|
||||
{
|
||||
public object? Outputs { get; set; }
|
||||
public string? Error { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user