Add user management

This commit is contained in:
2026-05-02 14:31:19 +02:00
parent 24ade563db
commit 5997a29d92
20 changed files with 983 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
package repository
import (
"errors"
"quay/app/models"
)
var ErrUserAlreadyExists = errors.New("user already exists")
type UserRepository interface {
GetAllUsers() ([]models.User, error)
GetUserById(id string) (*models.User, error)
GetUserByName(name string) (*models.User, error)
CreateUser(user *models.User) error
UpdateUser(user *models.User) error
DeleteUser(id string) error
}