package
Version:
v0.0.0-...-40b02db
Opens a new window with list of versions in this module.
Published: Dec 26, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 5
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
DriverName string `json:"driver"`
Database Database `json:"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 struct {
AppEnv string `json:"app_env"`
AppName string `json:"app_name"`
AppVersion string `json:"app_version"`
}
type Login struct {
Username string `json:"username" validate:"required"`
Password string `json:"password" validate:"required"`
}
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 struct {
ReferenceID string `json:"reference_id"`
}
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 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 struct {
ReferenceID string `json:"reference_id"`
OTP string `json:"otp"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.