Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/admin/src/api/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ export interface components {
vistaInicialYaw?: number | null;
/** Format: double */
vistaInicialPitch?: number | null;
textoAlt?: string | null;
};
ActualizarHotspotRequest: {
tipo?: components["schemas"]["TipoHotspot"];
Expand Down Expand Up @@ -1037,6 +1038,7 @@ export interface components {
vistaInicialYaw?: number | null;
/** Format: double */
vistaInicialPitch?: number | null;
textoAlt?: string | null;
};
CrearHotspotRequest: {
/** Format: int32 */
Expand Down Expand Up @@ -1115,6 +1117,7 @@ export interface components {
vistaInicialYaw?: number | null;
/** Format: double */
vistaInicialPitch?: number | null;
textoAlt?: string | null;
hotspots?: components["schemas"]["Hotspot"][] | null;
};
EscenaDto: {
Expand All @@ -1134,6 +1137,7 @@ export interface components {
vista_inicial_yaw?: number | null;
/** Format: double */
vista_inicial_pitch?: number | null;
texto_alt?: string | null;
};
Hotspot: {
/** Format: int32 */
Expand Down
4 changes: 2 additions & 2 deletions services/api/DTOs/AdminRequests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public record ActualizarLugarRequest(string Nombre, string Slug);
// --- DTOs de Escena ---
// ImagenUrl es opcional: lo normal es crear la escena vacía y luego subir la
// panorámica con POST /api/admin/escenas/{id}/imagen.
public record CrearEscenaRequest(int LugarId, int? PoiId, string? Nombre, string? ImagenUrl, string? ImagenUrlBaja, bool EsEscenaPrincipal, int Orden, double? VistaInicialYaw, double? VistaInicialPitch);
public record ActualizarEscenaRequest(int? PoiId, string? Nombre, string? ImagenUrl, string? ImagenUrlBaja, bool EsEscenaPrincipal, int Orden, double? VistaInicialYaw, double? VistaInicialPitch);
public record CrearEscenaRequest(int LugarId, int? PoiId, string? Nombre, string? ImagenUrl, string? ImagenUrlBaja, bool EsEscenaPrincipal, int Orden, double? VistaInicialYaw, double? VistaInicialPitch, string? TextoAlt);
public record ActualizarEscenaRequest(int? PoiId, string? Nombre, string? ImagenUrl, string? ImagenUrlBaja, bool EsEscenaPrincipal, int Orden, double? VistaInicialYaw, double? VistaInicialPitch, string? TextoAlt);

// --- DTOs de Hotspot ---
public record CrearHotspotRequest(int EscenaId, Models.TipoHotspot Tipo, double Pitch, double Yaw, int? EscenaDestinoId, int? PoiId, string? Etiqueta);
Expand Down
2 changes: 1 addition & 1 deletion services/api/DTOs/ContenidoMappers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal static class Dto

public static EscenaDto Escena(Escena e) => new(e.Id, e.LugarId, e.PoiId, e.Nombre,
e.ImagenUrl, e.ImagenUrlBaja, e.EsEscenaPrincipal, e.Orden,
e.VistaInicialYaw, e.VistaInicialPitch);
e.VistaInicialYaw, e.VistaInicialPitch, e.TextoAlt);

public static HotspotDto Hotspot(Hotspot h) => new(h.Id, h.EscenaId, h.Tipo,
h.Pitch, h.Yaw, h.EscenaDestinoId, h.PoiId, h.Etiqueta);
Expand Down
2 changes: 1 addition & 1 deletion services/api/DTOs/EscenaDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ namespace TourVirtualUTB.Api.DTOs;

public sealed record EscenaDto(int id, int lugar_id, int? poi_id, string? nombre,
string? imagen_url, string? imagen_url_baja, bool es_escena_principal, int orden,
double? vista_inicial_yaw, double? vista_inicial_pitch);
double? vista_inicial_yaw, double? vista_inicial_pitch, string? texto_alt);
Loading
Loading