auth

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GinAuth added in v1.0.4

type GinAuth struct{}

func (*GinAuth) Guard added in v1.0.4

func (a *GinAuth) Guard(name string) contractAuth.GinAuth

func (*GinAuth) Login added in v1.0.4

func (a *GinAuth) Login(ctx request.Context, Mobile string, Password string) (newAdmin *sysmodel.PlatformAdmin, token string, err error)

func (*GinAuth) LoginUsingID added in v1.0.4

func (a *GinAuth) LoginUsingID(ctx request.Context, userId int64) (newAdmin *sysmodel.PlatformAdmin, token string, err error)

func (*GinAuth) Logout added in v1.0.4

func (a *GinAuth) Logout(ctx request.Context) bool

func (*GinAuth) Parse added in v1.0.4

func (a *GinAuth) Parse(ctx request.Context) error

func (*GinAuth) Refresh added in v1.0.4

func (a *GinAuth) Refresh(ctx request.Context) (token string, err error)

func (*GinAuth) User added in v1.0.4

Jump to

Keyboard shortcuts

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