users

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provides = wire.NewSet(
	wire.Struct(new(Controller), "*"),
	wire.Struct(new(Service), "*"),
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	UsersService *Service
}

func (*Controller) In added in v0.0.28

func (x *Controller) In(r *route.RouterGroup)

type Service

type Service struct {
	Db    *mongo.Database
	Redis *redis.Client
}

func (*Service) Actived added in v0.0.28

func (x *Service) Actived(ctx context.Context, id primitive.ObjectID) (data map[string]interface{}, err error)

Actived 获取授权用户数据

func (*Service) FindByIdentity

func (x *Service) FindByIdentity(ctx context.Context, identity string) (user model.User, err error)

FindByIdentity 从用户名或电子邮件获取用户

Jump to

Keyboard shortcuts

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