Documentation ¶
Index ¶
- Variables
- func CreateMessage(ctx context.Context, msg *chat_model.Chat) (int64, error)
- func FollowList(ctx context.Context, userId int64) []*relation_model.Relation
- func FollowerList(ctx context.Context, userId int64) []*relation_model.Relation
- func Init()
- func QueryIsFollow(ctx context.Context, to_user int64, follower int64) (bool, error)
- func QueryMessage(ctx context.Context, toUserId int64, fromUserId int64) ([]*chat_model.Chat, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func CreateMessage ¶
创建聊天信息
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 QueryIsFollow ¶
查询是否关注
func QueryMessage ¶
func QueryMessage(ctx context.Context, toUserId int64, fromUserId int64) ([]*chat_model.Chat, error)
查询聊天记录信息
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.