user

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

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

Go to latest
Published: Mar 2, 2023 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 CreateUserDTO

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

type LoginDTO

type LoginDTO = CreateUserDTO

type User

type User struct {
	ID           string    `json:"id" bson:"_id,omitempty"`
	Email        string    `json:"email" bson:"email,omitempty"`
	Password     string    `json:"-" bson:"password,omitempty"`
	RegisteredAt time.Time `json:"registered_at" bson:"registered_at,omitempty"`
}

type UserLoginDTO

type UserLoginDTO struct {
	User  User   `json:"user,omitempty"`
	Email string `json:"email"`
	Error string `json:"error,omitempty"`
}

type UserRegistrationDTO

type UserRegistrationDTO struct {
	ID    string `json:"user_id,omitempty"`
	Email string `json:"email"`
	Error string `json:"error,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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