db

package
v0.0.0-...-671c73a Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUserInfos

func CreateUserInfos(ctx context.Context, userInfos []*model.User) error

func QueryFavoriteInfo

func QueryFavoriteInfo(ctx context.Context, uid, vid int64) error

func QueryFirstUserInfoByID

func QueryFirstUserInfoByID(ctx context.Context, id int64, query string) (*model.User, error)

func QueryFirstUserInfoByUsername

func QueryFirstUserInfoByUsername(ctx context.Context, username, query string) (*model.User, error)

func QueryFollowInfo

func QueryFollowInfo(ctx context.Context, userId, followUserId int64, query string) error

func QueryUserInfoByID

func QueryUserInfoByID(ctx context.Context, id int64, query string) (*model.User, error)

func QueryVideoInfoById

func QueryVideoInfoById(ctx context.Context, vid int64, query string) (*model.Video, error)

func QueryVideoInfoByUserId

func QueryVideoInfoByUserId(ctx context.Context, uid int64, query string) ([]*model.Video, error)

func QueryVideoInfoWithLimit

func QueryVideoInfoWithLimit(ctx context.Context, limit int, latestTime time.Time, query string) ([]*model.Video, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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