package
Version:
v1.1.2
Opens a new window with list of versions in this module.
Published: Apr 12, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type LoginInput struct {
Username string `json:"username" dc:"username" v:"required"`
Password string `json:"password" dc:"password" v:"required"`
}
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 struct {
g.Meta `path:"/login" method:"post" tags:"auth" summary:"login"`
LoginInput
}
type LogoutReq struct {
g.Meta `path:"/logout" method:"post" tags:"auth" summary:"logout"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.