mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-31 20:24:27 -04:00
19 lines
503 B
C#
19 lines
503 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
using API.Entities;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal;
|
|
|
|
namespace API.DTOs
|
|
{
|
|
public class CreateLibraryDto
|
|
{
|
|
[Required]
|
|
public string Name { get; set; }
|
|
[Required]
|
|
public LibraryType Type { get; set; }
|
|
[Required]
|
|
[MinLength(1)]
|
|
public IEnumerable<string> Folders { get; set; }
|
|
}
|
|
} |