Implemented template crud, db entities, import/export, ptero and pelican import

This commit is contained in:
2026-03-12 13:00:32 +00:00
parent 7c5dc657dc
commit e7b1e77d0a
68 changed files with 4269 additions and 24 deletions

View File

@@ -0,0 +1,24 @@
using System.ComponentModel.DataAnnotations;
namespace MoonlightServers.Shared.Admin.Templates;
public class CreateTemplateDto
{
[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; }
}