package
Version:
v0.0.0-...-7ccf317
Opens a new window with list of versions in this module.
Published: Aug 27, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CountModel struct {
Count int `json:"count"`
}
type Erred struct {
Error bool
FailedField string
Tag string
Value interface{}
}
type GenericResponse struct {
Success bool `json:"success"`
Message string `json:"message"`
}
type GlobalErrorHandlerResp struct {
Success bool `json:"success"`
Message string `json:"message"`
}
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 struct {
Token string `json:"token"`
RefreshToken string `json:"refreshToken"`
}
type RefreshTokenRequest struct {
Token string `json:"token" validate:"required"`
}
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 struct {
Title string `json:"title"`
Description string `json:"description"`
Logo string `json:"logo"`
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 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 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 struct {
Code string `json:"code" validate:"required,min=6,max=6"`
Type string `json:"type" validate:"required"`
}
type XValidator struct {
Validator *validator.Validate
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.