models

package
v0.0.0-...-8bb7535 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 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 Currency

type Currency struct {
	ID            string  `db:"id" json:"id"`
	Name          string  `db':"name" json:"name"`
	PriceInDollar float64 `db:"price_in_dollar" json:"price_in_dollar"`
}

Currency represents a single currency

type NewCurrency

type NewCurrency struct {
	ID            string  `json:"id"`
	PriceInDollar float64 `json:"price_in_dollar"`
}

NewCurrency is for registering a new currency

type NewProduct

type NewProduct struct {
	ID            string  `json:"id"`
	PriceInDollar float64 `json:"price_in_dollar"`
}

NewProduct is for registering a new product

type Product

type Product struct {
	ID            string  `db:"id" json:"id"`
	PriceInDollar float64 `db:"price_in_dollar" json:"price_in_dollar"`
}

Product represents a single product

Jump to

Keyboard shortcuts

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