fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user