friend

package
v0.0.0-...-f6d4ea8 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheFriendPrefix = "light.friend"
)
View Source
const (
	CollectionFriend = "friend"
)

Variables

This section is empty.

Functions

func CreateFriend

func CreateFriend(appId, userId, friendId string) error

func DeleteFriend

func DeleteFriend(appId, userId, friendId string) error

Types

type Friend

type Friend struct {
	Id       primitive.ObjectID `bson:"_id,omitempty" json:"id"`
	AppId    string             `bson:"appId" json:"app_id"`
	UserId   string             `bson:"userId" json:"user_id"`
	FriendId string             `bson:"friendId" json:"friend_id"`
	UTime    time.Time          `bson:"utime" json:"utime"`
	CTime    time.Time          `bson:"ctime" json:"ctime"`
}

func GetFriendByUFId

func GetFriendByUFId(appId, userId, friendId string) (*Friend, error)

Jump to

Keyboard shortcuts

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