mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 20:08:19 +02:00
LibrarConnector DTO and CreateLibraryConnectorRecord
This commit is contained in:
15
API/Controllers/DTOs/LibraryConnector.cs
Normal file
15
API/Controllers/DTOs/LibraryConnector.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using API.Schema.LibraryContext.LibraryConnectors;
|
||||
|
||||
namespace API.Controllers.DTOs;
|
||||
|
||||
public record LibraryConnector(string Key, string BaseUrl, LibraryType Type) : Identifiable(Key)
|
||||
{
|
||||
[StringLength(256)]
|
||||
[Required]
|
||||
[Url]
|
||||
public string BaseUrl {get; init;} = BaseUrl;
|
||||
|
||||
[Required]
|
||||
public LibraryType Type { get; init; } = Type;
|
||||
}
|
Reference in New Issue
Block a user