90ac0b81d1
Add full V2 architecture: identity, content, studio (.NET 10) and file, render, notification, gateway (Go) services with vendored deps, plus DB migrations, event/API contracts, and an init-db script. Wire the Next.js frontend to the gateway: server-side JWT auth routes (login/register/refresh/logout/me), gateway fetch helper, and session/ cookie/jwt helpers under src/lib. Containerize the stack via docker-compose.v2.yml and per-service Dockerfiles. Base images resolve through a Nexus mirror (Docker Hub) and MCR directly; npm/NuGet pull from Nexus groups. Self-host fonts via next/font/local to avoid Google Fonts (geo-blocked). Add CI workflow and ignore .env.v2, *.stackdump, and .NET bin/obj. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
143 lines
4.5 KiB
C#
143 lines
4.5 KiB
C#
namespace FlatRender.ContentSvc.Domain.Entities;
|
|
|
|
public class SceneCharacter
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid SceneId { get; set; }
|
|
public Scene Scene { get; set; } = default!;
|
|
|
|
public string Key { get; set; } = default!;
|
|
public string Name { get; set; } = default!;
|
|
public string? Icon { get; set; }
|
|
|
|
public int Sort { get; set; }
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
public ICollection<SceneCharacterController> Controllers { get; set; } = [];
|
|
}
|
|
|
|
public class SceneCharacterController
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid SceneCharacterId { get; set; }
|
|
public SceneCharacter Character { get; set; } = default!;
|
|
|
|
public string Name { get; set; } = default!;
|
|
public string Key { get; set; } = default!;
|
|
public string? DefaultValue { get; set; }
|
|
|
|
public int Sort { get; set; }
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
public ICollection<SceneControllerOption> Options { get; set; } = [];
|
|
}
|
|
|
|
public class SceneControllerOption
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid ControllerId { get; set; }
|
|
public SceneCharacterController Controller { get; set; } = default!;
|
|
|
|
public string Name { get; set; } = default!;
|
|
public string? Icon { get; set; }
|
|
public string Value { get; set; } = default!;
|
|
|
|
public int Sort { get; set; }
|
|
}
|
|
|
|
public class ProjectCharacterController
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid ProjectId { get; set; }
|
|
public Project Project { get; set; } = default!;
|
|
|
|
public string Name { get; set; } = default!;
|
|
public string Key { get; set; } = default!;
|
|
|
|
public int Sort { get; set; }
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
public ICollection<ProjectCharacterControllerOption> Options { get; set; } = [];
|
|
}
|
|
|
|
public class ProjectCharacterControllerOption
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid ControllerId { get; set; }
|
|
public ProjectCharacterController Controller { get; set; } = default!;
|
|
|
|
public string Name { get; set; } = default!;
|
|
public string? Icon { get; set; }
|
|
public string Value { get; set; } = default!;
|
|
|
|
public int Sort { get; set; }
|
|
}
|
|
|
|
public class ProjectCharacterPreset
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid ProjectId { get; set; }
|
|
public Project Project { get; set; } = default!;
|
|
|
|
public Guid Key { get; set; } = Guid.NewGuid();
|
|
public string Name { get; set; } = default!;
|
|
public string? Icon { get; set; }
|
|
|
|
public int Sort { get; set; }
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
public ICollection<PresetCharacterController> PresetControllers { get; set; } = [];
|
|
}
|
|
|
|
public class PresetCharacterController
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid CharacterPresetId { get; set; }
|
|
public ProjectCharacterPreset Preset { get; set; } = default!;
|
|
|
|
public string Name { get; set; } = default!;
|
|
public string Key { get; set; } = default!;
|
|
public string Value { get; set; } = default!;
|
|
|
|
public int Sort { get; set; }
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
}
|
|
|
|
public class PresetStory
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid ProjectId { get; set; }
|
|
public Project Project { get; set; } = default!;
|
|
|
|
public string Name { get; set; } = default!;
|
|
public string? Description { get; set; }
|
|
public string? Demo { get; set; }
|
|
public Guid? MusicId { get; set; }
|
|
public MusicTrack? Music { get; set; }
|
|
public string? ScenesSpa { get; set; }
|
|
|
|
public int Sort { get; set; }
|
|
public bool IsPublished { get; set; } = true;
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime? DeletedAt { get; set; }
|
|
|
|
public ICollection<PresetScene> Scenes { get; set; } = [];
|
|
}
|
|
|
|
public class PresetScene
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public Guid PresetStoryId { get; set; }
|
|
public PresetStory Story { get; set; } = default!;
|
|
public Guid SceneId { get; set; }
|
|
public Scene Scene { get; set; } = default!;
|
|
|
|
public int Sort { get; set; }
|
|
public decimal? DefaultDurationSec { get; set; }
|
|
}
|