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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewImpl)

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type IHandler

type IHandler interface {
	// Me serve caller to get myself information by token
	Me(c *gin.Context)

	// Signup serve caller to create user by email and password
	Signup(c *gin.Context)

	// Login serve caller to login system by email and password
	Login(c *gin.Context)

	// Logout serve caller to log out the system
	Logout(c *gin.Context)
}

IHandler declare user api function

func CreateIHandler

func CreateIHandler(logger *zap.Logger, biz user.IBiz) (IHandler, error)

CreateIHandler serve caller to create an IHandler

func NewImpl

func NewImpl(logger *zap.Logger, biz user.IBiz) IHandler

NewImpl serve caller to create an IHandler

Jump to

Keyboard shortcuts

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