logic

package
v0.0.0-...-bdd2a71 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FavoriteCommonLogic

type FavoriteCommonLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewFavoriteCommonLogic

func NewFavoriteCommonLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FavoriteCommonLogic

func (*FavoriteCommonLogic) LoadIdsAndStore

func (l *FavoriteCommonLogic) LoadIdsAndStore(key string, userId int64) ([]int64, error)

func (*FavoriteCommonLogic) LoadIdsFromMongo

func (l *FavoriteCommonLogic) LoadIdsFromMongo(id int64) (*model.VideoFavorite, error)

LoadIdsFromMongo 从 mongo 中取 favorite_videos 字段

func (*FavoriteCommonLogic) StoreFavoriteVideos2Redis

func (l *FavoriteCommonLogic) StoreFavoriteVideos2Redis(videos model.FavoriteVideos, key string) ([]int64, error)

type GetFavoriteAndFavoritedCntLogic

type GetFavoriteAndFavoritedCntLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetFavoriteAndFavoritedCntLogic

func NewGetFavoriteAndFavoritedCntLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetFavoriteAndFavoritedCntLogic

func (*GetFavoriteAndFavoritedCntLogic) GetFavoriteAndFavoritedCnt

func (l *GetFavoriteAndFavoritedCntLogic) GetFavoriteAndFavoritedCnt(in *__.GetFavoriteAndFavoritedCntReq) (*__.GetFavoriteAndFavoritedCntResp, error)

Jump to

Keyboard shortcuts

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