api

package
v0.0.0-...-61dbfe3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginAuth

func LoginAuth(c *gin.Context)

func Logout

func Logout(c *gin.Context)

func Register

func Register(c *gin.Context)

Register 注册用户

Types

type LoginUserForm

type LoginUserForm struct {
	UserName string `json:"username" binding:"gte=1,lte=20"`
	Password string `json:"password" binding:"gte=1,lte=20"`
}

type RegisterUserForm

type RegisterUserForm struct {
	LoginUserForm
	RePassword string `json:"re_password" binding:"required,eqfield=Password"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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