forms

package
v0.0.0-...-1ef4309 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleForm

type ArticleForm struct {
	Title   string `form:"title" json:"title" binding:"required,max=100"`
	Content string `form:"content" json:"content" binding:"required,max=1000"`
}

ArticleForm ...

type CommentForm

type CommentForm struct {
	Name    string `form:"name" json:"name" binding:"required,max=100"`
	Comment string `form:"comment" json:"comment" binding:"required,max=1000"`
}

CommentForm ...

type LoginForm

type LoginForm struct {
	Email    string `form:"email" json:"email" binding:"required,email"`
	Password string `form:"password" json:"password" binding:"required"`
}

LoginForm ...

type PostForm

type PostForm struct {
	Title   string `form:"title" json:"title" binding:"required,max=100"`
	Content string `form:"content" json:"content" binding:"required,max=1000"`
}

PostForm ...

type RegisterForm

type RegisterForm struct {
	Name     string `form:"name" json:"name" binding:"required,max=100"`
	Email    string `form:"email" json:"email" binding:"required,email"`
	Password string `form:"password" json:"password" binding:"required"`
}

RegisterForm ...

type Token

type Token struct {
	RefreshToken string `form:"refresh_token" json:"refresh_token" binding:"required"`
}

Token ...

Jump to

Keyboard shortcuts

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