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 ¶
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
Click to show internal directories.
Click to hide internal directories.