Documentation ¶
Index ¶
- type AccountInfoRepository
- func (r *AccountInfoRepository) CreateAccountInfo(ctx context.Context, accountInfo *api.AccountInfo) (*api.AccountInfo, error)
- func (r *AccountInfoRepository) GetAccountInfo(ctx context.Context, id string) (*api.AccountInfo, error)
- func (r *AccountInfoRepository) UpdateUserCredentials(ctx context.Context, accountInfo *api.AccountInfo) (*api.AccountInfo, error)
- type IAccountInfoRepository
- type IPersonalInfoRepository
- type IUserRepository
- type PersonalInfoRepository
- func (r *PersonalInfoRepository) CreatePersonalInfo(ctx context.Context, personalInfo *api.PersonalInfo) (*api.PersonalInfo, error)
- func (r *PersonalInfoRepository) DoesEmailExist(ctx context.Context, email string) (bool, error)
- func (r *PersonalInfoRepository) GetPersonalInfo(ctx context.Context, id string) (*api.PersonalInfo, error)
- func (r *PersonalInfoRepository) UpdatePersonalInfo(ctx context.Context, personalInfo *api.PersonalInfo) (*api.PersonalInfo, error)
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfoRepository ¶
type AccountInfoRepository struct {
// contains filtered or unexported fields
}
func (*AccountInfoRepository) CreateAccountInfo ¶
func (r *AccountInfoRepository) CreateAccountInfo(ctx context.Context, accountInfo *api.AccountInfo) (*api.AccountInfo, error)
func (*AccountInfoRepository) GetAccountInfo ¶
func (r *AccountInfoRepository) GetAccountInfo(ctx context.Context, id string) (*api.AccountInfo, error)
func (*AccountInfoRepository) UpdateUserCredentials ¶
func (r *AccountInfoRepository) UpdateUserCredentials(ctx context.Context, accountInfo *api.AccountInfo) (*api.AccountInfo, error)
type IAccountInfoRepository ¶
type IAccountInfoRepository interface { CreateAccountInfo(ctx context.Context, accountInfo *api.AccountInfo) (*api.AccountInfo, error) GetAccountInfo(ctx context.Context, id string) (*api.AccountInfo, error) UpdateUserCredentials(ctx context.Context, accountInfo *api.AccountInfo) (*api.AccountInfo, error) }
func NewAccountInfoRepository ¶
func NewAccountInfoRepository(dbService *config.DBService) IAccountInfoRepository
type IPersonalInfoRepository ¶
type IPersonalInfoRepository interface { CreatePersonalInfo(ctx context.Context, personalInfo *api.PersonalInfo) (*api.PersonalInfo, error) GetPersonalInfo(ctx context.Context, id string) (*api.PersonalInfo, error) UpdatePersonalInfo(ctx context.Context, personalInfo *api.PersonalInfo) (*api.PersonalInfo, error) DoesEmailExist(ctx context.Context, email string) (bool, error) }
func NewPersonalInfoRepository ¶
func NewPersonalInfoRepository(dbService *config.DBService) IPersonalInfoRepository
type IUserRepository ¶
type IUserRepository interface { CreateUser(ctx context.Context, user *model.User) (*model.User, error) GetUser(ctx context.Context, id string) (*model.User, error) }
func NewUserRepository ¶
func NewUserRepository(dbService *config.DBService) IUserRepository
type PersonalInfoRepository ¶
type PersonalInfoRepository struct {
// contains filtered or unexported fields
}
func (*PersonalInfoRepository) CreatePersonalInfo ¶
func (r *PersonalInfoRepository) CreatePersonalInfo(ctx context.Context, personalInfo *api.PersonalInfo) (*api.PersonalInfo, error)
func (*PersonalInfoRepository) DoesEmailExist ¶
func (*PersonalInfoRepository) GetPersonalInfo ¶
func (r *PersonalInfoRepository) GetPersonalInfo(ctx context.Context, id string) (*api.PersonalInfo, error)
func (*PersonalInfoRepository) UpdatePersonalInfo ¶
func (r *PersonalInfoRepository) UpdatePersonalInfo(ctx context.Context, personalInfo *api.PersonalInfo) (*api.PersonalInfo, error)
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func (*UserRepository) CreateUser ¶
Click to show internal directories.
Click to hide internal directories.