Documentation ¶
Index ¶
- func NewUserService(userRepo repositories.IUserRepository, ...) *userService
- type AccountInfoService
- func (s *AccountInfoService) CreateAccountInfo(ctx context.Context, accountInfo *api.AccountInfo) (*api.AccountInfo, error)
- func (s *AccountInfoService) GetAccountInfo(ctx context.Context, req *api.GetAccountInfoRequest) (*api.AccountInfo, error)
- func (s *AccountInfoService) UpdateUserCredentials(ctx context.Context, accountInfo *api.AccountInfo) (*api.AccountInfo, error)
- type IAccountInfoService
- type IPersonalInfoService
- type PersonalInfoService
- func (s *PersonalInfoService) CreatePersonalInfo(ctx context.Context, personalInfo *api.PersonalInfo) (*api.PersonalInfo, error)
- func (s *PersonalInfoService) GetPersonalInfo(ctx context.Context, req *api.GetPersonalInfoRequest) (*api.PersonalInfo, error)
- func (s *PersonalInfoService) UpdatePersonalInfo(ctx context.Context, personalInfo *api.PersonalInfo) (*api.PersonalInfo, error)
- type UserService
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 (s *AccountInfoService) GetAccountInfo(ctx context.Context, req *api.GetAccountInfoRequest) (*api.AccountInfo, error)
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 (s *PersonalInfoService) GetPersonalInfo(ctx context.Context, req *api.GetPersonalInfoRequest) (*api.PersonalInfo, error)
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) }
Click to show internal directories.
Click to hide internal directories.