profile

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: 8 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) FilterByNickname

func (self *Model) FilterByNickname(nickname string) bson.D

func (*Model) FilterByNicknameStartWithRegex

func (self *Model) FilterByNicknameStartWithRegex(nickname string) bson.D

func (*Model) FilterByNicknameWithRegex

func (self *Model) FilterByNicknameWithRegex(nickname string) bson.D

func (*Model) FilterByNormalProfile

func (self *Model) FilterByNormalProfile() bson.D

func (*Model) GetInfo

func (self *Model) GetInfo(userID primitive.ObjectID) (pf help.M, err error)

func (*Model) GetNickNameAndAvatar

func (self *Model) GetNickNameAndAvatar(userID primitive.ObjectID) (pf help.M, err error)

func (*Model) GetPublicInfo

func (self *Model) GetPublicInfo(userID primitive.ObjectID) (pf help.M, err error)

Jump to

Keyboard shortcuts

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