models

package
v0.0.0-...-7ccf317 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 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 CountModel

type CountModel struct {
	Count int `json:"count"`
}

type Erred

type Erred struct {
	Error       bool
	FailedField string
	Tag         string
	Value       interface{}
}

type GenericResponse

type GenericResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

type GlobalErrorHandlerResp

type GlobalErrorHandlerResp struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

type LoginRequest

type LoginRequest struct {
	Email    string `json:"email" validate:"required,email,max=255,min=3"`
	Password string `json:"password" validate:"required,max=255,min=3"`
}

type LoginResponse

type LoginResponse struct {
	Token        string `json:"token"`
	RefreshToken string `json:"refreshToken"`
}

type RefreshTokenRequest

type RefreshTokenRequest struct {
	Token string `json:"token" validate:"required"`
}

type RegisterRequest

type RegisterRequest struct {
	Email                string `json:"email" validate:"required,email,max=255,min=3"`
	Password             string `json:"password" validate:"required,max=255,min=3,eqfield=PasswordConfirmation"`
	PasswordConfirmation string `json:"passwordConfirmation" validate:"required"`
}

type SettingsResponse

type SettingsResponse struct {
	Title       string   `json:"title"`
	Description string   `json:"description"`
	Socials     []string `json:"socials"`
	Colors      struct {
		Primary string `json:"primary"`
		Success string `json:"success"`
		Warning string `json:"warning"`
		Info    string `json:"info"`
		Error   string `json:"error"`
	} `json:"colors"`
}

type UserModel

type UserModel struct {
	ID             string    `json:"id"`
	Email          string    `json:"email"`
	Password       string    `json:"password"`
	SocialProvider *string   `json:"SOCIAL_PROVIDER"`
	SocialId       *string   `json:"SOCIAL_ID"`
	CreatedAt      time.Time `json:"created_at"`
	UpdatedAt      time.Time `json:"updated_at"`
}

type VerificationModel

type VerificationModel struct {
	ID        string    `json:"id"`
	UserId    string    `json:"user_id"`
	Type      string    `json:"type"`
	Code      string    `json:"code"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type VerifyRequest

type VerifyRequest struct {
	Code string `json:"code" validate:"required,min=6,max=6"`
	Type string `json:"type" validate:"required"`
}

type XValidator

type XValidator struct {
	Validator *validator.Validate
}

Jump to

Keyboard shortcuts

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