[FA-27] Bookmark implementation
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using NodaTime;
|
||||
|
||||
namespace FictionArchive.Service.UserNovelDataService.Models.DTOs;
|
||||
|
||||
public class BookmarkDto
|
||||
{
|
||||
public int Id { get; init; }
|
||||
public uint ChapterId { get; init; }
|
||||
public uint NovelId { get; init; }
|
||||
public string? Description { get; init; }
|
||||
public Instant CreatedTime { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace FictionArchive.Service.UserNovelDataService.Models.DTOs;
|
||||
|
||||
public class BookmarkPayload
|
||||
{
|
||||
public BookmarkDto? Bookmark { get; init; }
|
||||
public bool Success { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace FictionArchive.Service.UserNovelDataService.Models.DTOs;
|
||||
|
||||
public record UpsertBookmarkInput(uint NovelId, uint ChapterId, string? Description);
|
||||
Reference in New Issue
Block a user