services

package
v0.0.0-...-ef65ee7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserService

func NewUserService(userRepo repositories.IUserRepository, personalInfoService IPersonalInfoService, accountInfoService IAccountInfoService) *userService

Types

type AccountInfoService

type AccountInfoService struct {
	// contains filtered or unexported fields
}

func NewAccountInfoService

func NewAccountInfoService(accountInfoRepo repositories.IAccountInfoRepository, passwordEncryptor encryption.PasswordEncryptor) *AccountInfoService

func (*AccountInfoService) CreateAccountInfo

func (s *AccountInfoService) CreateAccountInfo(ctx context.Context, accountInfo *api.AccountInfo) (*api.AccountInfo, error)

func (*AccountInfoService) GetAccountInfo

func (*AccountInfoService) UpdateUserCredentials

func (s *AccountInfoService) UpdateUserCredentials(ctx context.Context, accountInfo *api.AccountInfo) (*api.AccountInfo, error)

type IAccountInfoService

type IAccountInfoService interface {
	CreateAccountInfo(ctx context.Context, accountInfo *api.AccountInfo) (*api.AccountInfo, error)
	GetAccountInfo(ctx context.Context, req *api.GetAccountInfoRequest) (*api.AccountInfo, error)
	UpdateUserCredentials(ctx context.Context, accountInfo *api.AccountInfo) (*api.AccountInfo, error)
}

type IPersonalInfoService

type IPersonalInfoService interface {
	CreatePersonalInfo(ctx context.Context, personalInfo *api.PersonalInfo) (*api.PersonalInfo, error)
	GetPersonalInfo(ctx context.Context, req *api.GetPersonalInfoRequest) (*api.PersonalInfo, error)
	UpdatePersonalInfo(ctx context.Context, personalInfo *api.PersonalInfo) (*api.PersonalInfo, error)
}

type PersonalInfoService

type PersonalInfoService struct {
	// contains filtered or unexported fields
}

func NewPersonalInfoService

func NewPersonalInfoService(personalInfoRepo repositories.IPersonalInfoRepository) *PersonalInfoService

func (*PersonalInfoService) CreatePersonalInfo

func (s *PersonalInfoService) CreatePersonalInfo(ctx context.Context, personalInfo *api.PersonalInfo) (*api.PersonalInfo, error)

func (*PersonalInfoService) GetPersonalInfo

func (*PersonalInfoService) UpdatePersonalInfo

func (s *PersonalInfoService) UpdatePersonalInfo(ctx context.Context, personalInfo *api.PersonalInfo) (*api.PersonalInfo, error)

type UserService

type UserService interface {
	CreateUser(ctx context.Context, req *api.CreateUserRequest) (*api.UserResponse, error)
	GetUser(ctx context.Context, req *api.GetUserRequest) (*api.UserResponse, error)
	DeleteUser(ctx context.Context, req *api.DeleteUserRequest) (*api.UserResponse, error)
	HandleFailedLogin(ctx context.Context, req *api.HandleFailedLoginRequest) (*api.UserResponse, error)
}

Jump to

Keyboard shortcuts

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