product

package
v0.0.0-...-657e486 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBiz

func ToBiz(in *spb.Product, out *Product)

func ToProto

func ToProto(in *Product, out *spb.Product)

Types

type Product

type Product struct {
	Id          string      `bson:"id,omitempty" json:"id,omitempty"`
	Name        string      `bson:"name,omitempty" json:"name,omitempty"`
	Description string      `bson:"description,omitempty" json:"description,omitempty"`
	Picture     string      `bson:"picture,omitempty" json:"picture,omitempty"`
	PriceUsd    money.Money `bson:"price_usd,omitempty" json:"price_usd,omitempty"`
	Categories  []string    `bson:"categories,omitempty" json:"categories,omitempty"`
}

Product is a Product model.

Jump to

Keyboard shortcuts

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