role

package
v0.0.0-...-2f69930 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	*database.Database `json:"-" bson:"-" map:"-"`
}

func NewModel

func NewModel(mgo mongodb.Mongoer) *Model

func (*Model) FilterByName

func (self *Model) FilterByName(name string) bson.D

func (*Model) GetRoleByUserID

func (self *Model) GetRoleByUserID(userID primitive.ObjectID) (roles []model.Role, err error)

Jump to

Keyboard shortcuts

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