dao

package
v0.0.0-...-250bc44 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductDao

type ProductDao interface {
	GetProductList(param param.GetListParam) (list []*model.Product, count int64, err error)
	CreateProduct(product *model.Product) (id int64, err error)
	UpdateProductById(product *model.Product, id int64) error
	FirstProductById(id int64) (*model.Product, error)
	DeleteProductById(id int64) (count int64, err error)
	ListingProductById(id int64) (count int64, err error)
	DeListingProductById(id int64) (count int64, err error)
}

func NewProductImpl

func NewProductImpl(db *gorm.DB) ProductDao

type ProductImpl

type ProductImpl struct {
	// contains filtered or unexported fields
}

func (*ProductImpl) CreateProduct

func (p *ProductImpl) CreateProduct(product *model.Product) (id int64, err error)

func (*ProductImpl) DeListingProductById

func (p *ProductImpl) DeListingProductById(id int64) (count int64, err error)

func (*ProductImpl) DeleteProductById

func (p *ProductImpl) DeleteProductById(id int64) (count int64, err error)

func (*ProductImpl) FirstProductById

func (p *ProductImpl) FirstProductById(id int64) (*model.Product, error)

func (*ProductImpl) GetProductList

func (p *ProductImpl) GetProductList(param param.GetListParam) (list []*model.Product, count int64, err error)

func (*ProductImpl) ListingProductById

func (p *ProductImpl) ListingProductById(id int64) (count int64, err error)

func (*ProductImpl) UpdateProductById

func (p *ProductImpl) UpdateProductById(product *model.Product, id int64) error

Jump to

Keyboard shortcuts

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