controllers

package
v0.0.0-...-8ecc595 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 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 Response

type Response struct {
	Error error       `json:"error"`
	Code  int         `json:"code"`
	Data  interface{} `json:"data"`
}

Response -

type SetComponentsActive

type SetComponentsActive struct {
	ID     string `json:"id" required:"id is required" min:"min id is 4 char" validate:"required,min=4"`
	Active bool   `json:"active"`
}

SetComponentsActive -

type SetRatesActive

type SetRatesActive struct {
	ID     string `json:"id" required:"id is required" min:"min id is 4 char" validate:"required,min=4"`
	Active bool   `json:"active"`
}

SetRatesActive -

type SetRatesAsset

type SetRatesAsset struct {
	ID      string `json:"id" required:"id is required" min:"min id is 4 char" validate:"required,min=4"`
	AssetID string `json:"assetId" required:"assetId is required" min:"min assetId is 4 char" validate:"required,min=4"`
	Active  bool   `json:"active"`
}

SetRatesAsset -

type UserLogin

type UserLogin struct {
	Email    string `json:"email" required:"email is required" email:"email not valid" validate:"required,email"`
	Password string `json:"password" required:"password is required" validate:"required,min=4"`
}

UserLogin -

type UserLoginResponse

type UserLoginResponse struct {
	ID    string `json:"id"`
	Email string `json:"email"`
	Name  string `json:"name"`
	Token string `json:"token"`
}

UserLoginResponse -

Jump to

Keyboard shortcuts

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