auth_service

package
v0.0.0-...-0b81e36 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logout

func Logout(c *gin.Context)

func SaveLoginUser

func SaveLoginUser(c *gin.Context, loginUserInfo LoginUser)

Types

type Auth

type Auth struct {
	Username string
	Password string
}

func (*Auth) Check

func (a *Auth) Check() (bool, error)

type LoginUser

type LoginUser struct {
	Id        int64
	UserId    string
	AccountId string
	UserName  string
	UserEmail string
	UserPhone string
}

func GetLoginUser

func GetLoginUser(c *gin.Context) *LoginUser

Jump to

Keyboard shortcuts

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