dao

package
v0.0.0-...-e809d31 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operate

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

func NewOperate

func NewOperate(db *gorm.DB, rdb *redis.Client) *Operate

func (*Operate) CancelFavorite

func (o *Operate) CancelFavorite(ctx context.Context, uid, pid int64) error

func (*Operate) FavoriteProduct

func (o *Operate) FavoriteProduct(ctx context.Context, uid, pid int64) error

func (*Operate) GetCommentNum

func (o *Operate) GetCommentNum(pid int64) (int64, error)

func (*Operate) GetSaleNum

func (o *Operate) GetSaleNum(ctx context.Context, pid int64) (int64, error)

func (*Operate) GetUserFavoriteStatus

func (o *Operate) GetUserFavoriteStatus(ctx context.Context, uid, pid int64) (bool, error)

Jump to

Keyboard shortcuts

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