first commit
This commit is contained in:
9
internal/domain/entities/coffee.go
Normal file
9
internal/domain/entities/coffee.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package entities
|
||||
|
||||
type Coffee struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
Price float64 `json:"price"`
|
||||
Size string `json:"size"`
|
||||
}
|
||||
14
internal/domain/entities/order.go
Normal file
14
internal/domain/entities/order.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package entities
|
||||
|
||||
type Order struct {
|
||||
ID int `json:"id"`
|
||||
Items []Item `json:"items"`
|
||||
Total float64 `json:"total"`
|
||||
Status string `json:"status"`
|
||||
Timestamp string `json:"timestamp"`
|
||||
}
|
||||
|
||||
type Item struct {
|
||||
ProductID int `json:"product_id"`
|
||||
Quantity int `json:"quantity"`
|
||||
}
|
||||
9
internal/domain/entities/pastry.go
Normal file
9
internal/domain/entities/pastry.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package entities
|
||||
|
||||
type Pastry struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
Price float64 `json:"price"`
|
||||
Category string `json:"category"`
|
||||
}
|
||||
Reference in New Issue
Block a user