domain

package
v0.0.0-...-4f6455c Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrProductNotFound
	ErrProductNotFound = errors.New("product doesn't exists")
	// ErrProductAlreadyExists
	ErrProductAlreadyExists = errors.New("product with such name already exists")
)

Functions

This section is empty.

Types

type PaginationQuery

type PaginationQuery struct {
	Skip  int64 `form:"skip"`
	Limit int64 `form:"limit"`
}

PaginationQuery

type Product

type Product struct {
	Name             string    `csv:"name" json:"name" bson:"name"`
	Price            int       `csv:"price" json:"price" bson:"price"`
	PriceChangeCount int       `csv:"-" json:"price_change_count" bson:"price_change_count"`
	UpdatedAt        time.Time `csv:"-" json:"updated_at" bson:"updated_at"`
	IsUpdated        bool      `csv:"-" json:"is_updated" bson:"is_updated"`
}

Product

Jump to

Keyboard shortcuts

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