Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FavoriteCommonLogic ¶
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)
Click to show internal directories.
Click to hide internal directories.