Documentation ¶
Index ¶
- type UserModel
- func (um *UserModel) DeleteUser(id int) error
- func (um *UserModel) GetIdAndPasswordByLogin(ctx context.Context, login string) (int, string, error)
- func (um *UserModel) GetUser(id int) (*user.User, error)
- func (um *UserModel) LoginExists(ctx context.Context, login string) (bool, error)
- func (um *UserModel) SaveUser(ctx context.Context, u *user.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserModel ¶
type UserModel struct {
// contains filtered or unexported fields
}
Model for User.
func (*UserModel) DeleteUser ¶
Delete user from database.
func (*UserModel) GetIdAndPasswordByLogin ¶
func (um *UserModel) GetIdAndPasswordByLogin(ctx context.Context, login string) (int, string, error)
Get Id and password by Login.
func (*UserModel) LoginExists ¶
Сheck the existence of the login in the database.
Click to show internal directories.
Click to hide internal directories.