Implemented template crud, db entities, import/export, ptero and pelican import
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace MoonlightServers.Shared.Admin.Templates;
|
||||
|
||||
public class UpdateFilesConfigDto
|
||||
{
|
||||
public List<UpdateConfigurationFileDto> ConfigurationFiles { get; set; } = [];
|
||||
}
|
||||
|
||||
public class UpdateConfigurationFileDto
|
||||
{
|
||||
[Required]
|
||||
public string Path { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public string Parser { get; set; } = string.Empty;
|
||||
|
||||
public List<UpdateConfigurationFileMappingDto> Mappings { get; set; } = [];
|
||||
}
|
||||
|
||||
public class UpdateConfigurationFileMappingDto
|
||||
{
|
||||
[Required]
|
||||
public string Key { get; set; } = string.Empty;
|
||||
|
||||
public string? Value { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user