using FictionArchive.Service.NovelService.Services; using FictionArchive.Service.Shared.MassTransit.Contracts.Commands; using HotChocolate.Authorization; using HotChocolate.Types; namespace FictionArchive.Service.NovelService.GraphQL; public class Mutation { [Authorize] public async Task ImportNovel(string novelUrl, NovelUpdateService service) { return await service.QueueNovelImport(novelUrl); } [Authorize] public async Task FetchChapterContents( uint novelId, uint volumeId, uint chapterOrder, NovelUpdateService service) { return await service.QueueChapterPull(novelId, volumeId, chapterOrder); } [Error] [Authorize] public async Task DeleteNovel(uint novelId, NovelUpdateService service) { await service.DeleteNovel(novelId); return true; } }