model

package
v0.0.0-...-d57fdd4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CartItem

type CartItem struct {
	ID         string   `json:"id"`
	ProductSku string   `json:"productSku"`
	Product    *Product `json:"product"`
	Quantity   int      `json:"quantity"`
}

type LoginResponse

type LoginResponse struct {
	JwtToken string `json:"jwtToken"`
	User     *User  `json:"user"`
}

type NewCartItem

type NewCartItem struct {
	ProductSku string `json:"productSku"`
	Quantity   int    `json:"quantity"`
}

type NewProduct

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

type NewUser struct {
	FullName string `json:"fullName"`
	Email    string `json:"email"`
	Country  string `json:"country"`
	Password string `json:"password"`
}

type Pagination

type Pagination struct {
	AfterID *string `json:"afterId"`
	Limit   int     `json:"limit"`
}

type Product

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

type User struct {
	ID       string `json:"id"`
	FullName string `json:"fullName"`
	Email    string `json:"email"`
	Country  string `json:"country"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL