Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceGetLocaleRequestQuery ¶
type ServiceGetLocaleRequestQuery struct {
Code string `url:"code"`
}
Locale
type ServiceGetRoleRequestQuery ¶
Role
type ServiceGetRoleResponse ¶
type ServiceGetUserByIdRequestQuery ¶
type ServiceGetUserByIdRequestQuery struct {
Id string `url:"id"`
}
Render email template
type User ¶
type User struct {
Id string `json:"id"`
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
DateOfBirth time.Time `json:"date_of_birth"`
Locale string `json:"locale"`
IdentityVerificationId string `json:"identity_verification_id"`
IdentityVerificationSource string `json:"identity_verification_source"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository(service_url string, microservice_name string) *UserRepository
func (*UserRepository) GetLocale ¶
func (ur *UserRepository) GetLocale(code string) (*Locale, error)
func (*UserRepository) GetRoleById ¶
func (ur *UserRepository) GetRoleById(id int) (*Role, error)
func (*UserRepository) GetUserById ¶
func (ur *UserRepository) GetUserById(id string) (*User, error)
Click to show internal directories.
Click to hide internal directories.