package
Version:
v3.0.0
Opens a new window with list of versions in this module.
Published: Nov 27, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AuthLoginReq struct {
g.Meta `path:"/login" method:"post"`
}
type AuthLoginRes struct {
Token string `json:"token"`
Expire time.Time `json:"expire"`
}
type AuthLogoutReq struct {
g.Meta `path:"/logout" method:"post"`
}
type AuthLogoutRes struct {
}
type AuthRefreshTokenReq struct {
g.Meta `path:"/refresh_token" method:"post"`
}
type AuthRefreshTokenRes struct {
Token string `json:"token"`
Expire time.Time `json:"expire"`
}
type UserGetInfoReq struct {
g.Meta `path:"/user/info" method:"get"`
}
type UserGetInfoRes struct {
Id int `json:"id"`
IdentityKey string `json:"identity_key"`
Payload string `json:"payload"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.