package
Version:
v0.0.0-...-0ea871c
Opens a new window with list of versions in this module.
Published: Sep 20, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AddRefreshTokenReq struct {
Email string `json:"email" validate:"required,email,min=5,max=100"`
RefreshToken string `json:"refresh_token" validate:"required,min=50,max=500"`
}
type CreateReq struct {
UserId string `json:"user_id" validate:"required,min=21,max=21"`
Email string `json:"email" validate:"required,email,min=5,max=100"`
FullName string `json:"full_name" validate:"required,min=3,max=100"`
Password string `json:"password" validate:"required,min=5,max=100"`
}
type SanitizedUserRes struct {
UserId string `json:"user_id"`
Email string `json:"email"`
FullName string `json:"full_name"`
Role string `json:"role"`
PhotoProfileId string `json:"photo_profile_id"`
PhotoProfile string `json:"photo_profile"`
Whatsapp string `json:"whatsapp"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type UpdateEmailReq struct {
Email string `json:"email" validate:"required,email,min=5,max=100"`
NewEmail string `json:"new_email" validate:"required,email,min=5,max=100"`
Password string `json:"password" validate:"required,min=5,max=100"`
}
type UpdateEmailRes struct {
Email string `json:"email" validate:"required,email,min=5,max=100"`
NewEmail string `json:"new_email" validate:"required,email,min=5,max=100"`
}
type UpdatePasswordReq struct {
Email string `json:"email" validate:"required,email,min=5,max=100"`
Password string `json:"password" validate:"required,min=5,max=100"`
NewPassword string `json:"new_password" validate:"required,min=5,max=100"`
}
type UpdatePhotoProfileReq struct {
Email string `json:"email" validate:"required,email,min=5,max=100"`
PhotoProfileId string `json:"new_photo_profile_id" validate:"required,min=10,max=100"`
PhotoProfile string `json:"new_photo_profile" validate:"required,min=10,max=500"`
}
type UpdateProfileReq struct {
Email string `json:"email" validate:"required,email,min=5,max=100"`
FullName string `json:"full_name" validate:"omitempty,min=3,max=100"`
Whatsapp string `json:"whatsapp" validate:"omitempty,min=10,max=20"`
Password string `json:"password" validate:"required,min=5,max=100"`
}
type UpsertReq struct {
UserId string `json:"user_id" validate:"required,min=21,max=21"`
Email string `json:"email" validate:"required,email,min=5,max=100"`
FullName string `json:"full_name" validate:"required,min=3,max=100"`
PhotoProfile string `json:"photo_profile" validate:"required,min=3,max=500"`
RefreshToken string `json:"refresh_token" validate:"required,min=50,max=500"`
}
type VerifyOtpReq struct {
Email string `json:"email" validate:"required,email,min=5,max=100"`
Otp string `json:"otp" validate:"required,max=6"`
}
type VerifyUpdateEmailReq struct {
Email string `json:"email" validate:"required,email,min=5,max=100"`
NewEmail string `json:"new_email" validate:"required,email,min=5,max=100"`
Otp string `json:"otp" validate:"required,max=6"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.