models

package
v0.0.0-...-40b02db Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DriverName string   `json:"driver"`
	Database   Database `json:"database"`
}

type Database

type Database struct {
	DBName  string `json:"db_name"`
	DBPort  string `json:"db_port"`
	DBUser  string `json:"db_user"`
	DBPass  string `json:"db_pass"`
	SSLMode string `json:"ssl_mode"`
}

type EnvironmentConfig

type EnvironmentConfig struct {
	AppEnv     string `json:"app_env"`
	AppName    string `json:"app_name"`
	AppVersion string `json:"app_version"`
}

type JSONTime

type JSONTime time.Time

JSONTime ..

func (JSONTime) MarshalJSON

func (t JSONTime) MarshalJSON() ([]byte, error)

MarshalJSON ..

type Login

type Login struct {
	Username string `json:"username" validate:"required"`
	Password string `json:"password" validate:"required"`
}

type RegisterReq

type RegisterReq struct {
	FullName string `json:"full_name" validate:"required"`
	Phone    string `json:"phone" validate:"required"`
	Email    string `json:"email" validate:"required"`
	Username string `json:"username" validate:"required"`
	Password string `json:"password" validate:"required"`
}

type RegisterRes

type RegisterRes struct {
	ReferenceID string `json:"reference_id"`
}

type Response

type Response struct {
	StatusCode       string      `json:"statusCode"`
	Success          bool        `json:"success"`
	ResponseDatetime time.Time   `json:"responseDatetime"`
	Result           interface{} `json:"result"`
	Message          string      `json:"message"`
}

type User

type User struct {
	ID                int64        `json:"id"`
	FullName          string       `json:"full_name"`
	Phone             string       `json:"phone"`
	Email             string       `json:"email"`
	Username          string       `json:"username"`
	Password          string       `json:"password"`
	EmailVerifiedAtDB sql.NullTime `json:"email_verified_at"`
	EmailVerifiedAt   time.Time    `json:"-"`
	CreatedAt         string       `json:"created_at"`
	UpdatedAt         string       `json:"updated_at"`
}

type ValidateOtpReq

type ValidateOtpReq struct {
	ReferenceID string `json:"reference_id"`
	OTP         string `json:"otp"`
}

Jump to

Keyboard shortcuts

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