models

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Product

type Product struct {
	ID          int64   `bson:"_id,omitempty"`
	Name        string  `bson:"name"`
	Price       float64 `bson:"price"`
	Description string  `bson:"description"`
	CategoryID  int64   `bson:"category_id"`
}

func (*Product) PatchFields

func (p *Product) PatchFields(name string, price float64, description string, categoryId uint)

func (Product) ToDomain

func (c Product) ToDomain() entities.Product

Jump to

Keyboard shortcuts

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