account

package
v0.0.0-...-8af6e0c Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Info

func Info(ctx context.Context) (admin *entity.Admin, err error)

Info 获取当前已经登录的管理员信息

func Login

func Login(ctx context.Context, in *model.LoginInput) (tokenString string, err error)

Login 登录

func Logout

func Logout(ctx context.Context) (err error)

Logout 登出

Types

type AdminClaims

type AdminClaims struct {
	Id       uint
	Username string
	jwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

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