Documentation ¶
Index ¶
- type CachedTokens
- type Cart
- type CartProductResponse
- type CartProducts
- type CartResponse
- type LoginResponse
- type Order
- type OrderProducts
- type OrderResponse
- type Product
- type ProductResponse
- type ProductTypes
- type ProductsResponse
- type Supplier
- type SupplierResponse
- type SupplierTypes
- type SuppliersResponse
- type TokenResponse
- type User
- type UserResponse
- type WorkingHours
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedTokens ¶
type CartProductResponse ¶
type CartProductResponse struct { ID int `json:"id"` UserID int32 `json:"user_id"` Products []CartProducts `json:"products"` }
type CartProducts ¶
type CartResponse ¶
type LoginResponse ¶
type Order ¶
type Order struct { ID int32 `json:"id"` UserID int32 `json:"user_id"` Address string `json:"address"` Status string `json:"status"` PaymentMethod string `json:"payment_method"` PhoneNumber string `json:"phone_number"` CustomerName string `json:"customer_name"` CustomerLastname string `json:"customer_lastname"` Products []OrderProducts `json:"products"` Deleted string `json:"deleted"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
type OrderProducts ¶
type OrderResponse ¶
type OrderResponse struct { ID int32 `json:"id"` UserID int32 `json:"user_id"` Address string `json:"address"` PhoneNumber string `json:"phone_number"` CustomerName string `json:"customer_name"` CustomerLastname string `json:"customer_lastname"` Status string `json:"status"` Products []OrderProducts `json:"products"` CreatedAt string `json:"created_at"` }
type Product ¶
type Product struct { ID int `json:"id"` SupplierID int32 `json:"supplier_id"` Name string `json:"name"` Price float64 `json:"price"` Type string `json:"type"` Ingredients []string `json:"ingredients"` Image string `json:"image"` Deleted string `json:"deleted"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
type ProductResponse ¶
type ProductTypes ¶
type ProductTypes string
type ProductsResponse ¶
type ProductsResponse struct {
Products []Product `json:"menu"`
}
type Supplier ¶
type Supplier struct { ID int32 `json:"id"` Name string `json:"name"` Type string `json:"type"` Menu []Product `json:"menu"` Image string `json:"image"` WorkHours WorkingHours `json:"workingHours"` Deleted string `json:"deleted"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
type SupplierResponse ¶
type SupplierTypes ¶
type SupplierTypes string
type SuppliersResponse ¶
type SuppliersResponse struct {
Suppliers []Supplier `json:"suppliers"`
}
type TokenResponse ¶
type TokenResponse struct {
RefreshToken string `json:"refresh_token"`
}
type UserResponse ¶
type WorkingHours ¶
Click to show internal directories.
Click to hide internal directories.