package
Version:
v0.0.0-...-d57fdd4
Opens a new window with list of versions in this module.
Published: Jan 4, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CartItem struct {
ID string `json:"id"`
ProductSku string `json:"productSku"`
Product *Product `json:"product"`
Quantity int `json:"quantity"`
}
type LoginResponse struct {
JwtToken string `json:"jwtToken"`
User *User `json:"user"`
}
type NewCartItem struct {
ProductSku string `json:"productSku"`
Quantity int `json:"quantity"`
}
type NewProduct struct {
Name string `json:"name"`
Description string `json:"description"`
Category string `json:"category"`
Brand *string `json:"brand"`
Price float64 `json:"price"`
ImageURL string `json:"imageUrl"`
}
type NewUser struct {
FullName string `json:"fullName"`
Email string `json:"email"`
Country string `json:"country"`
Password string `json:"password"`
}
type Pagination struct {
}
type Product struct {
Sku string `json:"sku"`
Name string `json:"name"`
Description string `json:"description"`
Category string `json:"category"`
Brand string `json:"brand"`
Price float64 `json:"price"`
ImageURL string `json:"imageUrl"`
}
type User struct {
ID string `json:"id"`
FullName string `json:"fullName"`
Email string `json:"email"`
Country string `json:"country"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.