contracts

package
v0.0.0-...-f8ea5e8 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 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 AddFeedBackReq

type AddFeedBackReq struct {
	Message string `json:"message" example:"Feedback message"`
}

type AddOAuthServiceReq

type AddOAuthServiceReq struct {
	RegisterID string `json:"register_id" example:"oauth registration id"`
}

type AdminEditUserReq

type AdminEditUserReq struct {
	Key   string `json:"key" example:"name/email/nick/password"`
	Value string `json:"value" example:"Value for replace"`
}

type EditUserPasswordReq

type EditUserPasswordReq struct {
	Current string `json:"current" example:"Current password"`
	New     string `json:"new" example:"New password"`
}

type EditUserReq

type EditUserReq struct {
	Email   string `json:"email" example:"user new email"`
	Name    string `json:"name" example:"user new name"`
	Picture string `json:"picture" example:"link to user avatar picture"`
}

type LoginReq

type LoginReq struct {
	Login    string `json:"login" example:"user email/nick"`
	Password string `json:"password" example:"user password"`
}

type LoginRes

type LoginRes struct {
	Token        string      `json:"token" example:"Auth token"`
	RefreshToken string      `json:"refresh_token" example:"Refresh token"`
	User         models.User `json:"user" example:"Information about user"`
	ExpiredIn    int64       `json:"expired_in" example:"Time when token will become expired"`
}

type OAuthRegisterReq

type OAuthRegisterReq struct {
	Name       string `json:"name" example:"user name"`
	Nick       string `json:"nick" example:"user nick"`
	Email      string `json:"email" example:"user email"`
	Password   string `json:"password" example:"user password"`
	RegisterID string `json:"register_id" example:"registerId"`
}

type RefreshReq

type RefreshReq struct {
	RefreshToken string `json:"token" example:"token"`
}

type RegisterReq

type RegisterReq struct {
	Name     string `json:"name" example:"user name"`
	Nick     string `json:"nick" example:"user nick"`
	Email    string `json:"email" example:"user email"`
	Password string `json:"password" example:"user password"`
}

type VIPRes

type VIPRes struct {
	Message string
}

Jump to

Keyboard shortcuts

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