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 CreateRelationInfos

func CreateRelationInfos(ctx context.Context, relationInfos []*model.Relation) error

func CreateUserInfos

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

func DeleteRelationInfo

func DeleteRelationInfo(ctx context.Context, userId, followUserId int64) 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 QueryFollowInfos

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

func QueryFollowerInfos

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

func QueryLatestMessage

func QueryLatestMessage(ctx context.Context, fromUid, toUid int64, query string) (*model.Message, error)

func QueryUserInfoByID

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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