journal/Journal.Core/Dtos/ListDtos.cs

22 lines
432 B
C#

using System.ComponentModel.DataAnnotations;
namespace Journal.Core.Dtos;
public record ListDocumentDto(
Guid Id,
string Label,
string Content,
DateTimeOffset CreatedAt,
DateTimeOffset UpdatedAt
);
public record CreateListDto(
[property: Required(AllowEmptyStrings = false)] string Label,
string? Content = null
);
public record UpdateListDto(
string? Label = null,
string? Content = null
);