Documentation
¶
Index ¶
- type UserRepo
- func (repo *UserRepo) ChangeUserRole(ctx context.Context, userID uuid.UUID, role model.UserRoles) error
- func (repo *UserRepo) CreateUser(ctx context.Context, user *model.User) error
- func (repo *UserRepo) DeleteUser(ctx context.Context, userID uuid.UUID) error
- func (repo *UserRepo) GetUser(ctx context.Context, userID uuid.UUID) (*model.User, error)
- func (repo *UserRepo) GetUserByEmail(ctx context.Context, email string) (*model.User, error)
- func (repo *UserRepo) GetUsers(ctx context.Context) ([]*model.User, error)
- func (repo *UserRepo) UpdateUser(ctx context.Context, user *model.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func (*UserRepo) ChangeUserRole ¶
func (*UserRepo) CreateUser ¶
func (*UserRepo) DeleteUser ¶
func (*UserRepo) GetUserByEmail ¶
Click to show internal directories.
Click to hide internal directories.