auth

package
v0.0.0-...-54effc8 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAdminAuth

func CheckAdminAuth() gin.HandlerFunc

* 后台用户

func CheckAuth

func CheckAuth() gin.HandlerFunc

* app用户

Types

type UserAuth

type UserAuth struct {
}

func (UserAuth) IsAdminLogin

func (ud UserAuth) IsAdminLogin(c *gin.Context) (interface{}, int32)

func (UserAuth) IsLogin

func (ud UserAuth) IsLogin(c *gin.Context) interface{}

Jump to

Keyboard shortcuts

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