userrepository

package module
v0.0.0-...-20d2930 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locale

type Locale struct {
	Id            int       `json:"id"`
	Code          string    `json:"code"`
	Name          string    `json:"name"`
	NameLocalized string    `json:"name_localized"`
	CreatedAt     time.Time `json:"created_at"`
}

type Role

type Role struct {
	Id        int       `json:"id"`
	Name      string    `json:"name"`
	CreatedAt time.Time `json:"created_at"`
}

type ServiceGetLocaleRequestQuery

type ServiceGetLocaleRequestQuery struct {
	Code string `url:"code"`
}

Locale

type ServiceGetLocaleResponse

type ServiceGetLocaleResponse struct {
	Status string  `json:"status"`
	Error  *string `json:"error"`
	Data   *Locale `json:"data"`
}

type ServiceGetRoleRequestQuery

type ServiceGetRoleRequestQuery struct {
	Name *string `url:"name"`
	Id   *int    `url:"id"`
}

Role

type ServiceGetRoleResponse

type ServiceGetRoleResponse struct {
	Status string  `json:"status"`
	Error  *string `json:"error"`
	Data   *Role   `json:"data"`
}

type ServiceGetUserByIdRequestQuery

type ServiceGetUserByIdRequestQuery struct {
	Id string `url:"id"`
}

Render email template

type ServiceGetUserByIdResponse

type ServiceGetUserByIdResponse struct {
	Status string  `json:"status"`
	Error  *string `json:"error"`
	Data   *User   `json:"data"`
}

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) GetRole

func (ur *UserRepository) GetRole(name string) (*Role, error)

func (*UserRepository) GetRoleById

func (ur *UserRepository) GetRoleById(id int) (*Role, error)

func (*UserRepository) GetUserById

func (ur *UserRepository) GetUserById(id string) (*User, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL