diff options
Diffstat (limited to 'pkg/database/repository')
-rw-r--r-- | pkg/database/repository/user.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/database/repository/user.go b/pkg/database/repository/user.go index 3589007..5b2e386 100644 --- a/pkg/database/repository/user.go +++ b/pkg/database/repository/user.go @@ -14,7 +14,8 @@ type ( UpdateUser struct { Username string Name string - Password string + IsAdmin bool + Path string } CreateUser struct { @@ -31,6 +32,8 @@ type ( List(ctx context.Context) ([]*User, error) Create(ctx context.Context, createUser *CreateUser) (uint, error) Update(ctx context.Context, id uint, updateUser *UpdateUser) error + Delete(ctx context.Context, id uint) error + UpdatePassword(ctx context.Context, id uint, password []byte) error Any(ctx context.Context) (bool, error) } ) |