request

package
v0.0.0-...-7cf99fd Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginByAccountRequest

type LoginByAccountRequest struct {
	Account  string `json:"account" binding:"required"`
	Password string `json:"password" binding:"required,min=6,max=18"`
}

type LoginByMobileRequest

type LoginByMobileRequest struct {
	Mobile string `json:"mobile" binding:"required"`
	Code   string `json:"code" binding:"required,min=4,max=8"`
}

type RegisterByEmailRequest

type RegisterByEmailRequest struct {
	Email    string `json:"email" binding:"required,email"`
	Password string `json:"password" binding:"required,min=6,max=18"`
	Code     string `json:"code" binding:"required,min=4,max=8"`
}

type RegisterByMobileRequest

type RegisterByMobileRequest struct {
	Mobile   string `json:"mobile" binding:"required,numeric"`
	Password string `json:"password" binding:"required,min=6,max=18"`
	Code     string `json:"code" binding:"required,min=4,max=8"`
}

type RegisterByUsernameRequest

type RegisterByUsernameRequest struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required,min=6,max=18"`
	Code     string `json:"code" binding:"required,min=4,max=8"`
}

type SMSRequest

type SMSRequest struct {
	Mobile  string      `json:"mobile"`
	Type    sms.SMSType `json:"type"`
	Content string      `json:"content"`
}

Jump to

Keyboard shortcuts

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