request

package
v5.2.2-beta2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Login

type Login struct {
	User string `validate:"required,username"`
	Pass string `validate:"required,min=8,max=64"`
	Code string `validate:"required"`
}

Login 登录表单值(暂未使用)

func (*Login) BeforeValidate

func (r *Login) BeforeValidate(ctx echo.Context) error

type Register

type Register struct {
	InvitationCode       string `validate:"required,min=16,max=32"`
	Username             string `validate:"required,username"`
	Email                string `validate:"required,email"`
	Password             string `validate:"required,min=8,max=64"`
	ConfirmationPassword string `validate:"required,eqfield=Password"`
}

func (*Register) BeforeValidate

func (r *Register) BeforeValidate(ctx echo.Context) error

type Setup

type Setup struct {
	Type       string `validate:"required"`
	User       string
	Password   string
	Host       string
	Database   string
	Charset    string `validate:"omitempty,alphanum"`
	AdminUser  string `validate:"username"`
	AdminPass  string `validate:"required,min=8,max=64"`
	AdminEmail string `validate:"required,email"`
}

func (*Setup) AfterValidate

func (s *Setup) AfterValidate(c echo.Context) error

Jump to

Keyboard shortcuts

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