mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 11:58:19 +02:00
14 lines
393 B
C#
14 lines
393 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace API.Controllers.DTOs;
|
|
|
|
public sealed record FileLibrary(string Key, string BasePath, string LibraryName) : Identifiable(Key)
|
|
{
|
|
[StringLength(256)]
|
|
[Required]
|
|
public string BasePath { get; internal set; } = BasePath;
|
|
|
|
[StringLength(512)]
|
|
[Required]
|
|
public string LibraryName { get; internal set; } = LibraryName;
|
|
} |