This commit is contained in:
2026-07-03 23:11:03 +02:00
parent 4a3c953045
commit ba60e22404
3 changed files with 43 additions and 35 deletions
+6 -5
View File
@@ -17,9 +17,10 @@
// listener.go subscribes to the inventory_changed Redis pub/sub channel
// and mirrors upstream events into the local cache.
//
// TODO: types.go mixes storage types (InventoryItem, InventoryReference)
// with request types (CartReserveRequest, ReserveRequest). Split into
// `types/storage.go` and `types/cart.go` so callers can depend on only
// what they need. Start by moving CartReserveRequest + ReserveRequest to
// `types/cart.go` and adjusting the imports in cmd/*.
// Request and reservation DTOs (CartReserveRequest, ReserveRequest,
// CartID, ReservationStatus, ReservationSummary) now live in
// request_types.go. Storage types (InventoryItem, InventoryReference,
// InventoryResult) remain in types.go. When adding a new request shape,
// put it in request_types.go; when adding a new storage shape, put it
// in types.go.
package inventory