mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
14 lines
436 B
Go
14 lines
436 B
Go
package user
|
|
|
|
type Repository interface {
|
|
Get(id uint32) (User, error)
|
|
GetByUsername(username string) (User, error)
|
|
GetByEmail(email string) (User, error)
|
|
GetAll() []User
|
|
Create(user User) (User, error)
|
|
Delete(id uint32) error
|
|
UpdateVerificationStatus(userId uint32, isVerified bool) (User, error)
|
|
UpdatePassword(userId uint32, password string) (User, error)
|
|
UpdatePasswordResetCode(userId uint32, code string) (User, error)
|
|
}
|