Final fixes for demo

This commit is contained in:
2025-06-27 23:11:23 -06:00
parent 15d0d24313
commit 977aa577cc
6 changed files with 18 additions and 18 deletions

View File

@@ -72,7 +72,7 @@ namespace Core.Inventory.BFF.API.Controllers
if (newFurniture == null) return BadRequest("Invalid furniture object"); if (newFurniture == null) return BadRequest("Invalid furniture object");
if (string.IsNullOrEmpty(newFurniture.Name)) return BadRequest("Invalid furniture name"); if (string.IsNullOrEmpty(newFurniture.ModelName)) return BadRequest("Invalid furniture name");
if (string.IsNullOrEmpty(newFurniture.Material)) return BadRequest("Invalid furniture material"); if (string.IsNullOrEmpty(newFurniture.Material)) return BadRequest("Invalid furniture material");
@@ -100,7 +100,7 @@ namespace Core.Inventory.BFF.API.Controllers
if (newFurniture == null) return BadRequest("Invalid furniture object"); if (newFurniture == null) return BadRequest("Invalid furniture object");
if (string.IsNullOrEmpty(newFurniture.Name)) return BadRequest("Invalid furniture name"); if (string.IsNullOrEmpty(newFurniture.ModelName)) return BadRequest("Invalid furniture model name");
if (string.IsNullOrEmpty(newFurniture.Material)) return BadRequest("Invalid furniture material"); if (string.IsNullOrEmpty(newFurniture.Material)) return BadRequest("Invalid furniture material");

View File

@@ -4,12 +4,12 @@ namespace Core.Inventory.External.Clients.Inventory.Requests.Base
{ {
public class CreateFurnitureBaseRequest public class CreateFurnitureBaseRequest
{ {
public string Name { get; set; } = default!; public string ModelName { get; set; } = default!;
public string Material { get; set; } = default!; public string Material { get; set; } = default!;
public string Condition { get; set; } = default!; public string Condition { get; set; } = default!;
public string? Description { get; set; } public string? BaseDescription { get; set; }
public string? Representation { get; set; } public string? Representation { get; set; }
public string? Notes { get; set; } public string? MaintenanceNotes { get; set; }
public DimensionsRequest Dimensions { get; set; } = new(); public DimensionsRequest Dimensions { get; set; } = new();
public List<string>? VariantIds { get; set; } public List<string>? VariantIds { get; set; }
} }

View File

@@ -1,19 +1,18 @@
using Core.Blueprint.Mongo; using Core.Inventory.External.Clients.Inventory.Requests.Common;
using Core.Inventory.External.Clients.Inventory.Requests.Common;
namespace Core.Inventory.External.Clients.Inventory.Requests.Base namespace Core.Inventory.External.Clients.Inventory.Requests.Base
{ {
public class UpdateFurnitureBaseRequest public class UpdateFurnitureBaseRequest
{ {
public string _Id { get; set; } = default!;
public string Id { get; set; } = default!; public string Id { get; set; } = default!;
public string Name { get; set; } = default!; public string ModelName { get; set; } = default!;
public string Material { get; set; } = default!; public string Material { get; set; } = default!;
public string Condition { get; set; } = default!; public string Condition { get; set; } = default!;
public string? Description { get; set; } public string? BaseDescription { get; set; }
public string? Representation { get; set; } public string? Representation { get; set; }
public string? Notes { get; set; } public string? MaintenanceNotes { get; set; }
public DimensionsRequest Dimensions { get; set; } = new(); public DimensionsRequest Dimensions { get; set; } = new();
public List<string>? VariantIds { get; set; } public List<string>? VariantIds { get; set; }
public StatusEnum Status { get; set; }
} }
} }

View File

@@ -11,9 +11,9 @@
public string Currency { get; set; } = "USD"; public string Currency { get; set; } = "USD";
public int Stock { get; set; } public int Stock { get; set; }
public Guid CategoryId { get; set; } public string CategoryId { get; set; } = string.Empty;
public Guid ProviderId { get; set; } public string ProviderId { get; set; } = string.Empty;
public Dictionary<string, object> Attributes { get; set; } = []; public Dictionary<string, string> Attributes { get; set; } = [];
} }
} }

View File

@@ -2,6 +2,7 @@
{ {
public class UpdateFurnitureVariantRequest public class UpdateFurnitureVariantRequest
{ {
public string _Id { get; set; } = default!;
public string Id { get; set; } = default!; public string Id { get; set; } = default!;
public string ModelId { get; set; } = default!; public string ModelId { get; set; } = default!;
public string Name { get; set; } = default!; public string Name { get; set; } = default!;
@@ -12,9 +13,9 @@
public decimal Price { get; set; } public decimal Price { get; set; }
public string Currency { get; set; } = "USD"; public string Currency { get; set; } = "USD";
public Guid CategoryId { get; set; } public string CategoryId { get; set; } = string.Empty;
public Guid ProviderId { get; set; } public string ProviderId { get; set; } = string.Empty;
public Dictionary<string, object> Attributes { get; set; } = new(); public Dictionary<string, string> Attributes { get; set; } = new();
} }
} }

View File

@@ -7,7 +7,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Adapters.Lib" Version="1.0.3" /> <PackageReference Include="Adapters.Lib" Version="1.0.6" />
<PackageReference Include="BuildingBlocks.Library" Version="1.0.0" /> <PackageReference Include="BuildingBlocks.Library" Version="1.0.0" />
<PackageReference Include="Refit" Version="8.0.0" /> <PackageReference Include="Refit" Version="8.0.0" />
</ItemGroup> </ItemGroup>