auth

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyRes

type EmptyRes struct{}

type LoginInput

type LoginInput struct {
	Username string `json:"username" dc:"username" v:"required"`
	Password string `json:"password" dc:"password" v:"required"`
}

type LoginOutput

type LoginOutput struct {
	TokenType string `json:"tokenType" dc:"Token type, default is Bearer"`
	Token     string `json:"token" dc:"Token string"`
	ExpireIn  int64  `json:"expireIn" dc:"expires in seconds"`
	Username  string `json:"username" dc:"username"`
}

type LoginReq

type LoginReq struct {
	g.Meta `path:"/login" method:"post" tags:"auth" summary:"login"`
	LoginInput
}

type LoginRes

type LoginRes = LoginOutput

type LogoutReq

type LogoutReq struct {
	g.Meta `path:"/logout" method:"post" tags:"auth" summary:"logout"`
}

Jump to

Keyboard shortcuts

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