forms

package
v0.0.0-...-f66fa89 Latest Latest
Warning

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

Go to latest
Published: May 9, 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 CommentForm

type CommentForm struct {
	UserId    int64
	PostId    int64
	CommentId int64
	Comment   string `json:"comment"`
}

type FollowersForm

type FollowersForm struct {
	ID        int64 `json:"id"`
	Follower  int64 `json:"follower"`
	Following int64 `json:"following"`
}

type LoginForm

type LoginForm struct {
	UsernameOrEmail string `binding:"required" json:"usernameoremail"`
	Password        string `binding:"required" json:"password"`
}

type PostForm

type PostForm struct {
	UserId      int64
	Description string `json:"description"`
}

type UserForm

type UserForm struct {
	Username string `binding:"required" json:"username"`
	Email    string `binding:"required" json:"email"`
	// Phone    string `binding:"required" json:"phone"`
	Password string `binding:"required" json:"password"`
}

Jump to

Keyboard shortcuts

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