mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-24 00:52:23 -04:00
17 lines
404 B
C#
17 lines
404 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using API.Entities.Enums;
|
|
|
|
namespace API.DTOs
|
|
{
|
|
public class CreateLibraryDto
|
|
{
|
|
[Required]
|
|
public string Name { get; init; }
|
|
[Required]
|
|
public LibraryType Type { get; init; }
|
|
[Required]
|
|
[MinLength(1)]
|
|
public IEnumerable<string> Folders { get; init; }
|
|
}
|
|
} |