apidata

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APILoginResponse

type APILoginResponse struct {
	AccessToken string `json:"access_token" xml:"access_token" form:"access_token" binding:"required"`
	TokenType   string `json:"token_type"`
	ExpiresIn   int64  `json:"expires_in"`
}

APILoginResponse api login response

type CreateAccountRequest

type CreateAccountRequest struct {
	Email           string `json:"email" xml:"email" form:"email" binding:"required"`
	Username        string `json:"username" xml:"username" form:"username" binding:"required"`
	Password        string `json:"password" xml:"password" form:"password" binding:"required"`
	ConfirmPassword string `json:"confirmPassword" xml:"confirmPassword" form:"confirmPassword" binding:"required"`
}

CreateAccountRequest /signup

type GoogleUserInfo

type GoogleUserInfo struct {
	ID            string `json:"id"`
	FamilyName    string `json:"family_name"`
	Name          string `json:"name"`
	Picture       string `json:"picture"`
	Local         string `json:"local"`
	Email         string `json:"Email"`
	GivenName     string `json:"GivenName"`
	VerifiedEmail bool   `json:"verified_email"`
}

GoogleUserInfo user info

type LoginRequest

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

LoginRequest login request

type LoginResponse

type LoginResponse struct {
	IsSuccess bool
	Redirect  string
}

LoginResponse login response

type UpdatePasswordRequest

type UpdatePasswordRequest struct {
	CurrentPassword string `json:"currentPassword" xml:"currentPassword" form:"currentPassword" binding:"required"`
	Password        string `json:"password" xml:"password" form:"password" binding:"required"`
	ConfirmPassword string `json:"confirmPassword" xml:"confirmPassword" form:"confirmPassword" binding:"required"`
}

UpdatePasswordRequest /api/account/update/password

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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