mirror of
https://github.com/3ybactuk/marketplace-go-service-project.git
synced 2026-11-04 00:02:52 +03:00
[hw-3] loms service
This commit is contained in:
1 parent
c8e056bc99
commit
b88dfe6db5
73 files changed
+8837
-52
No files matched your search
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package entity
|
||||
|
||||
type Stock struct {
|
||||
Item OrderItem
|
||||
Reserved uint32
|
||||
}
|
||||
Reference in new issue
Block a user