Discover Packages
github.com/genesisblock3301/role_based_access_boilerplate_go
backend
serializers
package
Version:
v0.0.0-...-de20da1
Opens a new window with list of versions in this module.
Published: Mar 17, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type LoginResponse struct {
Name string `json:"name""`
Email string `json:"email"`
Token string `json:"token"`
RefreshToken string `json:"refresh_token"`
}
type LoginSerializer struct {
Email string `json:"email"`
Password string `json:"password"`
}
type LoginUserSerializer struct {
ID uint `json:"id"`
Name string `json:"name"`
Email string `json:"email"`
Password string `json:"password"`
IsActive int `json:"is_active"`
}
type OTPSerializer struct {
IsOTP bool `json:"is_otp"`
Code string `json:"code"`
}
type RegisterSerializer struct {
Name string `json:"name" validate:"required"`
Email string `json:"email" validate:"required,email"`
Password string `json:"password" validate:"required"`
}
type Role struct {
RoleName string `json:"role_name"`
}
type RoleResponse struct {
ID uint `json:"id"`
RoleName string `json:"role_name"`
}
type User struct {
Name string `json:"name"`
Email string `json:"email"`
Password string `json:"password"`
IsActive int `json:"is_active"`
Token string `json:"token"`
RefreshToken string `json:"refresh_token"`
}
type VerifyOTPSerializer struct {
Code string `json:"code"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.