mirror of
https://github.com/3ybactuk/marketplace-go-service-project.git
synced 2025-10-30 14:03:45 +03:00
[hw-1] implement cart service
This commit is contained in:
12
cart/internal/domain/entity/cart.go
Normal file
12
cart/internal/domain/entity/cart.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package entity
|
||||
|
||||
type (
|
||||
UID uint64
|
||||
Sku int64
|
||||
)
|
||||
|
||||
type Cart struct {
|
||||
UserID UID
|
||||
Items []Sku
|
||||
ItemCount map[Sku]uint32
|
||||
}
|
||||
Reference in New Issue
Block a user