Gathering infra
Deploy Promiscuity Auth API / deploy (push) Successful in 46s
Deploy Promiscuity Character API / deploy (push) Successful in 45s
Deploy Promiscuity Inventory API / deploy (push) Successful in 46s
Deploy Promiscuity Locations API / deploy (push) Successful in 1m3s
k8s smoke test / test (push) Successful in 7s

This commit is contained in:
2026-03-15 14:04:12 -05:00
parent a2a4d48de5
commit 9ba725d207
10 changed files with 273 additions and 22 deletions
@@ -0,0 +1,8 @@
namespace LocationsApi.Models;
public class GatherResourceRequest
{
public string CharacterId { get; set; } = string.Empty;
public string ResourceKey { get; set; } = string.Empty;
}
@@ -0,0 +1,16 @@
namespace LocationsApi.Models;
public class GatherResourceResponse
{
public string LocationId { get; set; } = string.Empty;
public string CharacterId { get; set; } = string.Empty;
public string ResourceKey { get; set; } = string.Empty;
public int QuantityGranted { get; set; }
public int RemainingQuantity { get; set; }
public string InventoryResponseJson { get; set; } = string.Empty;
}
@@ -15,6 +15,9 @@ public class Location
[BsonElement("coord")]
public required Coord Coord { get; set; }
[BsonElement("resources")]
public List<LocationResource> Resources { get; set; } = [];
[BsonElement("createdUtc")]
public DateTime CreatedUtc { get; set; } = DateTime.UtcNow;
}
@@ -0,0 +1,15 @@
using MongoDB.Bson.Serialization.Attributes;
namespace LocationsApi.Models;
public class LocationResource
{
[BsonElement("itemKey")]
public string ItemKey { get; set; } = string.Empty;
[BsonElement("remainingQuantity")]
public int RemainingQuantity { get; set; }
[BsonElement("gatherQuantity")]
public int GatherQuantity { get; set; } = 1;
}