user

package
v0.0.0-...-e765db0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: GPL-3.0 Imports: 8 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 {
	// GetByUsername serve caller to given username to get an user information
	GetByUsername(ctx contextx.Contextx, username string) (info *user.Profile, err error)

	// Signup serve caller to register an user
	Signup(ctx contextx.Contextx, username, password string) (info *user.Profile, err error)

	// Login serve caller to login the system
	Login(ctx contextx.Contextx, username, password string) (info *user.Profile, err error)
}

IBiz declare user service function

func CreateIBiz

func CreateIBiz(logger *zap.Logger, repo2 repo.IRepo) (IBiz, error)

func NewImpl

func NewImpl(logger *zap.Logger, repo repo.IRepo) 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