models

package
v0.0.0-...-be8e022 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorMessage

type ErrorMessage struct {
	Message string `json:"message"`
}

type Item

type Item struct {
	ID    int    `json:"id"`
	Name  string `json:"name"`
	Price int    `json:"price"`
}

type ListResponse

type ListResponse struct {
	Meta  Meta   `json:"meta"`
	Items []Item `json:"items"`
}

type Meta

type Meta struct {
	ItemAmount  int `json:"item_amount"`
	PageAmount  int `json:"page_amount"`
	PageSize    int `json:"page_size"`
	CurrentPage int `json:"current_page"`
}

Jump to

Keyboard shortcuts

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