user

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
}

Dispatcher 登陆控制器

func (Dispatcher) Join

func (Dispatcher) Join(c *gin.Context)

Join 用户注册

func (Dispatcher) Login

func (Dispatcher) Login(c *gin.Context)

Login 用户登陆

func (Dispatcher) Logout

func (Dispatcher) Logout(c *gin.Context)

Logout 用户登出

func (Dispatcher) Passwd

func (Dispatcher) Passwd(c *gin.Context)

Passwd 修改密码

type ParamJoin

type ParamJoin struct {
	UserName string `form:"username" json:"username"  binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
	Email    string `form:"email" json:"email" binding:"required"`
}

ParamJoin accept parameters pass from network.

type ParamLogin

type ParamLogin struct {
	User     string `form:"user" json:"user"  binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}

ParamLogin accept parameters pass from network.

type ParamPasswd

type ParamPasswd struct {
	UID    int    `form:"uid" json:"uid" binding:"required"`
	Passwd string `form:"passwd" json:"passwd" binding:"required"`
}

ParamPasswd accept parameters pass from network.

Jump to

Keyboard shortcuts

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