models

package
v0.0.0-...-d926718 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginUser

type LoginUser struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

LoginUser is used when trying to log in

type User

type User struct {
	gorm.Model
	First    string `json:"first"`
	Last     string `json:"last"`
	Password string `json:"password"`
	Email    string `json:"email"`
	Phone    string `json:"phone"`
}

User is a login

type UserDTO

type UserDTO struct {
	First string `json:"first"`
	Last  string `json:"last"`
	Email string `json:"email"`
}

UserDTO is what we let the client see ;)

Jump to

Keyboard shortcuts

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