[FA-4] Adds an event bus infrastructure, a RabbitMQ implementation and rewires existing mutations on NovelService to utilize it.
This commit is contained in:
@@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace FictionArchive.Service.NovelService.Models.Localization;
|
||||
|
||||
public class LocalizationKey : BaseEntity<uint>
|
||||
public class LocalizationKey : BaseEntity<Guid>
|
||||
{
|
||||
public List<LocalizationText> Texts { get; set; }
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
using FictionArchive.Common.Enums;
|
||||
using FictionArchive.Service.NovelService.Models.Novels;
|
||||
using FictionArchive.Service.Shared.Models;
|
||||
|
||||
namespace FictionArchive.Service.NovelService.Models.Localization;
|
||||
|
||||
public class LocalizationRequest : BaseEntity<Guid>
|
||||
{
|
||||
public LocalizationKey KeyRequestedForTranslation { get; set; }
|
||||
public Language TranslateTo { get; set; }
|
||||
public TranslationEngine Engine { get; set; }
|
||||
}
|
||||
@@ -4,7 +4,7 @@ using FictionArchive.Service.Shared.Models;
|
||||
|
||||
namespace FictionArchive.Service.NovelService.Models.Localization;
|
||||
|
||||
public class LocalizationText : BaseEntity<uint>
|
||||
public class LocalizationText : BaseEntity<Guid>
|
||||
{
|
||||
public Language Language { get; set; }
|
||||
public string Text { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user