auth

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InfoHandler

func InfoHandler(c *gin.Context)

func LoginHandler

func LoginHandler(c *gin.Context)

func LogoutHandler

func LogoutHandler(c *gin.Context)

func PasswordHandler

func PasswordHandler(c *gin.Context)

Types

type InfoRsp

type InfoRsp struct {
	ID        uint64   `json:"id"`
	Account   string   `json:"account"`
	Roles     []string `json:"roles"`
	State     int      `json:"state"`
	CreatedAt int64    `json:"created_at"`
	UpdatedAt int64    `json:"updated_at"`
	Email     string   `json:"email,omitempty"`
	Nickname  string   `json:"nickname,omitempty"`
}

Jump to

Keyboard shortcuts

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