user

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type IBiz

type IBiz interface {
	// GetByID serve caller to given user id to get user information
	GetByID(ctx contextx.Contextx, id int64) (info *user.Profile, err error)

	// GetByToken serve caller to given user token to get user information
	GetByToken(ctx contextx.Contextx, token string) (info *user.Profile, err error)

	// Signup serve caller to given email and password to register an account
	Signup(ctx contextx.Contextx, email, password, name string) (info *user.Profile, err error)

	// Login serve caller to given email and password to login system
	Login(ctx contextx.Contextx, email, password string) (info *user.Profile, err error)

	// Logout serve caller to logout the system
	Logout(ctx contextx.Contextx) error
}

IBiz declare user's service function

func CreateIBiz

func CreateIBiz(logger *zap.Logger, repo2 repo.IRepo, node *snowflake.Node, token2 *token.Factory) (IBiz, error)

CreateIBiz serve caller to create an IBiz

func NewImpl

func NewImpl(logger *zap.Logger, repo repo.IRepo, node *snowflake.Node, token *token.Factory) IBiz

NewImpl serve caller to create an IBiz

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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