24 lines
612 B
C#
24 lines
612 B
C#
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; }
|
|
} |