auth

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const CheckSql = "SELECT id,remark from appusers a where a.IsDeleted = 0 and a.AppKey = ?"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthGroutRoute added in v0.0.8

type AuthGroutRoute gin.IRoutes

func NewRouterRequiredAuth added in v0.0.8

func NewRouterRequiredAuth(group *gin.RouterGroup, auth *AuthService) AuthGroutRoute

type AuthKey

type AuthKey struct {
	ID     uint
	Remark string
}

type AuthService

type AuthService struct {
	Db *gorm.DB

	SQL  string
	Keys []string
	// contains filtered or unexported fields
}

func (*AuthService) Auth

func (a *AuthService) Auth(c *gin.Context)

type AuthServiceParam added in v0.0.8

type AuthServiceParam struct {
	dig.In
	DB     *gorm.DB `optional:"true"`
	Logger *zap.Logger
}

Jump to

Keyboard shortcuts

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