group

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 (
	CollectionGroupUser = "group_user"
)

Variables

This section is empty.

Functions

func CreateGroupUsers

func CreateGroupUsers(appId, groupId string, userIds []string) error

func DeleteGroupUsers

func DeleteGroupUsers(appId, groupId string, userIds []string) error

Types

type GroupUser

type GroupUser struct {
	Id      primitive.ObjectID `bson:"_id,omitempty" json:"id"`
	AppId   string             `bson:"appId" json:"app_id"`
	GroupId string             `bson:"groupId" json:"group_id"`
	UserId  string             `bson:"userId" json:"user_id"`
	UTime   time.Time          `bson:"utime" json:"utime"`
	CTime   time.Time          `bson:"ctime" json:"ctime"`
}

func FindGroupUsers

func FindGroupUsers(appId, groupId string) ([]*GroupUser, error)

func GetGroupUserByGUId

func GetGroupUserByGUId(appId, groupId, userId string) (*GroupUser, error)

Jump to

Keyboard shortcuts

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