auth

package
v0.0.2-0...-83fa1ee Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renew

type Renew struct {
	RefreshToken string `json:"refresh_token"`
}

type User

type User struct {
	ID        uuid.UUID `db:"id" json:"id" validate:"required,uuid"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
	Email     string    `db:"email" json:"email" validate:"required,email,lte=255"`
	Password  string    `db:"password" json:"password,omitempty" validate:"required,lte=255"`
	FirstName string    `db:"first_name" json:"first_name" validate:"required,lte=255"`
	LastName  string    `db:"last_name" json:"last_name" validate:"required,lte=255"`
	Role      string    `db:"role" json:"role" validate:"required,lte=255" default:"disabled"`
}

type UserForCreate

type UserForCreate struct {
	Email     string `json:"email" validate:"required,email,lte=255"`
	Password  string `json:"password" validate:"required,lte=255"`
	FirstName string `json:"first_name" validate:"required,lte=255"`
	LastName  string `json:"last_name" validate:"required,lte=255"`
	Role      string `json:"role" validate:"required,lte=255" default:"disabled"`
}

type UserForLogin

type UserForLogin struct {
	Email    string `json:"email" validate:"required,email,lte=255"`
	Password string `json:"password" validate:"required,lte=255"`
}

Jump to

Keyboard shortcuts

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