mirror of
https://github.com/3ybactuk/marketplace-go-service-project.git
synced 2025-10-30 22:13:44 +03:00
[hw-3] loms service
This commit is contained in:
18
loms/internal/domain/entity/order.go
Normal file
18
loms/internal/domain/entity/order.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package entity
|
||||
|
||||
type (
|
||||
ID int64
|
||||
Sku int64
|
||||
)
|
||||
|
||||
type Order struct {
|
||||
OrderID ID
|
||||
Status string
|
||||
UserID ID
|
||||
Items []OrderItem
|
||||
}
|
||||
|
||||
type OrderItem struct {
|
||||
ID Sku
|
||||
Count uint32
|
||||
}
|
||||
6
loms/internal/domain/entity/stock.go
Normal file
6
loms/internal/domain/entity/stock.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package entity
|
||||
|
||||
type Stock struct {
|
||||
Item OrderItem
|
||||
Reserved uint32
|
||||
}
|
||||
Reference in New Issue
Block a user