Implemented template crud, db entities, import/export, ptero and pelican import
This commit is contained in:
32
MoonlightServers.Shared/Admin/Templates/UpdateTemplateDto.cs
Normal file
32
MoonlightServers.Shared/Admin/Templates/UpdateTemplateDto.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace MoonlightServers.Shared.Admin.Templates;
|
||||
|
||||
public class UpdateTemplateDto
|
||||
{
|
||||
[Required, MaxLength(30)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Required, MaxLength(255)]
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
[Required, MaxLength(30)]
|
||||
public string Author { get; set; } = string.Empty;
|
||||
|
||||
[Required, MaxLength(30)]
|
||||
public string Version { get; set; } = string.Empty;
|
||||
|
||||
[MaxLength(2048)]
|
||||
public string? UpdateUrl { get; set; }
|
||||
|
||||
[MaxLength(2048)]
|
||||
public string? DonateUrl { get; set; }
|
||||
|
||||
public UpdateFilesConfigDto FilesConfig { get; set; } = new();
|
||||
public UpdateLifecycleConfigDto LifecycleConfig { get; set; } = new();
|
||||
public UpdateInstallationConfigDto InstallationConfig { get; set; } = new();
|
||||
public UpdateMiscellaneousConfigDto MiscellaneousConfig { get; set; } = new();
|
||||
|
||||
public bool AllowUserDockerImageChange { get; set; }
|
||||
public int? DefaultDockerImageId { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user