auth

package
v0.0.0-...-78f8b4d Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMiddleware

func GetMiddleware() *jwt.GinJWTMiddleware

func RoleCheck

func RoleCheck(path string, role int) bool

Types

type PhoneCodeBody

type PhoneCodeBody struct {
	Phone string `json:"phone" binding:"required,len=11"`
	Code  string `json:"code" binding:"required,len=4"`
}

Jump to

Keyboard shortcuts

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