Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
domain.Base
Country string `json:"country"`
City string `json:"city"`
Street string `json:"street"`
Phone string `json:"phone"`
UserID uuid.UUID `json:"user_id"`
User domain.User
}
Address represent address
func (*Address) ResourceName ¶
type Meal ¶
type Meal struct {
domain.Base
Name string `json:"name"`
Description string `json:"description"`
Cost float32 `json:"cost"`
CategoryID uuid.UUID `json:"category_id"`
Category Category
}
Meal represent meal
func (*Meal) ResourceName ¶
type Order ¶
type Order struct {
domain.Base
Price float32 `json:"price"`
Status string `json:"status"`
UserID uuid.UUID `json:"user_id"`
User domain.User
}
Order represent order
func (*Order) ResourceName ¶
type OrderItem ¶
type OrderItem struct {
domain.Base
Amount int `json:"amount"`
Comment string `json:"comment"`
MealID uuid.UUID `json:"meal_id"`
Meal Meal
OrderID uuid.UUID `json:"order_id"`
Order Order
UserID uuid.UUID `json:"user_id"`
User domain.User
}
OrderItem represent order item
func (*OrderItem) ResourceName ¶
Click to show internal directories.
Click to hide internal directories.