schema

package
v0.0.0-...-30dbe51 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 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 AccountLoginSchema

type AccountLoginSchema struct {
	Username string `json:"username" validate:"required,max=127"`
	Password string `json:"password" validate:"required,max=64"`
}

AccountLoginSchema is the account login schema.

type AccountRegSchema

type AccountRegSchema struct {
	Username string `json:"username" validate:"required,max=127"`
	Email    string `json:"email" validate:"required,email,max=127"`
	Password string `json:"password" validate:"required,max=64"`
}

AccountRegSchema is the account create schema.

type AccountTokenSchema

type AccountTokenSchema struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

Jump to

Keyboard shortcuts

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