Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginRequest ¶
type LoginRequest struct { Username string `json:"username" bind:"query,form" process:"trim"` Password string `json:"password" bind:"query,form" process:"trim,cut(32)"` Type int }
func (*LoginRequest) Clear ¶
func (r *LoginRequest) Clear()
type LogoutRequest ¶
type LogoutRequest struct {
Authorization string `json:"authorization" bind:"header" process:"trim,cut(32)"`
}
func (*LogoutRequest) Clear ¶
func (r *LogoutRequest) Clear()
type LogoutResponse ¶
type LogoutResponse struct { }
type ProfileRequest ¶ added in v0.5.7
type ProfileRequest struct {
UID uint64 `json:"uid" bind:"ctx"`
}
func (*ProfileRequest) Clear ¶ added in v0.5.7
func (r *ProfileRequest) Clear()
type ProfileResponse ¶ added in v0.5.7
type ProfileResponse struct { }
type RegisterRequest ¶ added in v0.4.1
type RegisterRequest struct { Username string `json:"username" bind:"query,form" process:"trim"` Password string `json:"password" bind:"query,form" process:"trim,cut(32)"` Type int }
func (*RegisterRequest) Clear ¶ added in v0.4.1
func (r *RegisterRequest) Clear()
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.