models

package
v0.0.0-...-1bff6d3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = setupConfig()

Functions

This section is empty.

Types

type JwtToken

type JwtToken struct {
	Token string `json:"token"`
}

type Login

type Login struct {
	Email    string `json:"email",form:"email",bson:"email"`
	Password string `json:"password",form:"password",bson:"password"`
}

type Response

type Response struct {
	StatusCode int    `json:"code"`
	Message    string `json:"message"`
}

type ResponseUsersList

type ResponseUsersList struct {
	StatusCode int    `json:"code"`
	Message    string `json:"message"`
	Result     []User `json:"result"`
}

type User

type User struct {
	FirstName string `json:"firstname",form:"firstname",bson:"firstname"`
	LastName  string `json:"lastname",form:"lastname",bson:"lastname"`
	Email     string `json:"email",form:"email",bson:"email"`
	Password  string `json:"password",form:"password",bson:"password"`
}

Jump to

Keyboard shortcuts

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