dto

package
v0.0.0-...-58afb8c Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserAuth

type UserAuth struct {
	ObjectId      uuid.UUID `json:"objectId" bson:"objectId"`
	Username      string    `json:"username" bson:"username"`
	Password      []byte    `json:"password" bson:"password"`
	AccessToken   string    `json:"access_token" bson:"access_token"`
	EmailVerified bool      `json:"emailVerified" bson:"emailVerified"`
	Role          string    `json:"role" bson:"role"`
	PhoneVerified bool      `json:"phoneVerified" bson:"phoneVerified"`
	TokenExpires  int64     `json:"token_expires" bson:"token_expires"`
	CreatedDate   int64     `json:"created_date" bson:"created_date"`
	LastUpdated   int64     `json:"last_updated" bson:"last_updated"`
}

type UserVerification

type UserVerification struct {
	ObjectId        uuid.UUID             `json:"objectId" bson:"objectId"`
	Code            string                `json:"code" bson:"code"`
	Target          string                `json:"target" bson:"target"`
	TargetType      constants.VerifyConst `json:"targetType" bson:"targetType"`
	Counter         int64                 `json:"counter" bson:"counter"`
	CreatedDate     int64                 `json:"created_date" bson:"created_date"`
	RemoteIpAddress string                `json:"remoteIpAddress" bson:"remoteIpAddress"`
	UserId          uuid.UUID             `json:"userId" bson:"userId"`
	IsVerified      bool                  `json:"isVerified" bson:"isVerified"`
	LastUpdated     int64                 `json:"last_updated" bson:"last_updated"`
}

Jump to

Keyboard shortcuts

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