db

package
v0.0.0-...-48d44df Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func CreateMessage

func CreateMessage(ctx context.Context, msg *chat_model.Chat) (int64, error)

创建聊天信息

func FollowList

func FollowList(ctx context.Context, userId int64) []*relation_model.Relation

FollowList 查询关注列表

func FollowerList

func FollowerList(ctx context.Context, userId int64) []*relation_model.Relation

FollowerList 查询粉丝列表

func Init

func Init()

func QueryIsFollow

func QueryIsFollow(ctx context.Context, to_user int64, follower int64) (bool, error)

查询是否关注

func QueryMessage

func QueryMessage(ctx context.Context, toUserId int64, fromUserId int64) ([]*chat_model.Chat, error)

查询聊天记录信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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