Documentation ¶
Index ¶
- type ProductDao
- type ProductImpl
- func (p *ProductImpl) CreateProduct(product *model.Product) (id int64, err error)
- func (p *ProductImpl) DeListingProductById(id int64) (count int64, err error)
- func (p *ProductImpl) DeleteProductById(id int64) (count int64, err error)
- func (p *ProductImpl) FirstProductById(id int64) (*model.Product, error)
- func (p *ProductImpl) GetProductList(param param.GetListParam) (list []*model.Product, count int64, err error)
- func (p *ProductImpl) ListingProductById(id int64) (count int64, err error)
- func (p *ProductImpl) UpdateProductById(product *model.Product, id int64) error
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
Click to show internal directories.
Click to hide internal directories.