request

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 2 Imported by: 0

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()

func (*LoginRequest) Verify

func (r *LoginRequest) Verify() error

type LogoutRequest

type LogoutRequest struct {
	Authorization string `json:"authorization" bind:"header" process:"trim,cut(32)"`
}

func (*LogoutRequest) Clear

func (r *LogoutRequest) Clear()

func (*LogoutRequest) Verify

func (r *LogoutRequest) Verify() error

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()

func (*ProfileRequest) Verify added in v0.5.7

func (r *ProfileRequest) Verify() error

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()

func (*RegisterRequest) Verify added in v0.4.1

func (r *RegisterRequest) Verify() error

type TokenResponse

type TokenResponse struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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