|
@@ -10,6 +10,7 @@ type WriteUser func(user *models.User) (*models.User, error)
|
|
|
// UserRepository represents the set of queries on the User model
|
|
// UserRepository represents the set of queries on the User model
|
|
|
type UserRepository interface {
|
|
type UserRepository interface {
|
|
|
CreateUser(user *models.User) (*models.User, error)
|
|
CreateUser(user *models.User) (*models.User, error)
|
|
|
|
|
+ CheckPassword(id int, pwd string) (bool, error)
|
|
|
ReadUser(id uint) (*models.User, error)
|
|
ReadUser(id uint) (*models.User, error)
|
|
|
ReadUserByEmail(email string) (*models.User, error)
|
|
ReadUserByEmail(email string) (*models.User, error)
|
|
|
UpdateUser(user *models.User) (*models.User, error)
|
|
UpdateUser(user *models.User) (*models.User, error)
|