27 lines
658 B
C#
27 lines
658 B
C#
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;
|
|
} |