Add Icon property to FurnitureBase and FurnitureVariant

This commit is contained in:
Oscar Morales
2025-09-03 14:52:32 -06:00
parent 88d3d46cd7
commit 7c9fecb909
3 changed files with 17 additions and 1 deletions

View File

@@ -76,6 +76,14 @@ namespace Core.Inventory.Domain.Contexts.Inventory.Request
[BsonRepresentation(BsonType.String)] [BsonRepresentation(BsonType.String)]
[JsonPropertyName("variantIds")] [JsonPropertyName("variantIds")]
public List<string>? VariantIds { get; set; } public List<string>? VariantIds { get; set; }
/// <summary>
/// Gets or sets the icon of the FurnitureBase.
/// </summary>
[BsonElement("icon")]
[BsonRepresentation(BsonType.String)]
[JsonPropertyName("icon")]
public string Icon { get; set; } = null!;
} }
/// <summary> /// <summary>

View File

@@ -49,5 +49,13 @@ namespace Core.Inventory.Domain.Contexts.Inventory.Request
[BsonRepresentation(BsonType.String)] [BsonRepresentation(BsonType.String)]
[JsonPropertyName("line")] [JsonPropertyName("line")]
public string? Line { get; set; } public string? Line { get; set; }
/// <summary>
/// Gets or sets the icon of the FurnitureVariant.
/// </summary>
[BsonElement("icon")]
[BsonRepresentation(BsonType.String)]
[JsonPropertyName("icon")]
public string Icon { get; set; } = null!;
} }
} }

View File

@@ -7,7 +7,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Core.Adapters.Lib" Version="1.0.0" /> <PackageReference Include="Core.Adapters.Lib" Version="1.0.1" />
<PackageReference Include="Core.Blueprint.Mongo" Version="1.0.0" /> <PackageReference Include="Core.Blueprint.Mongo" Version="1.0.0" />
<PackageReference Include="Core.Blueprint.Redis" Version="1.0.0" /> <PackageReference Include="Core.Blueprint.Redis" Version="1.0.0" />
<PackageReference Include="Mapster" Version="7.4.0" /> <PackageReference Include="Mapster" Version="7.4.0" />