aboutsummaryrefslogtreecommitdiff
path: root/pkg/components/user/model.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/components/user/model.go')
-rw-r--r--pkg/components/user/model.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/components/user/model.go b/pkg/components/user/model.go
index f957c39..ce1b3a5 100644
--- a/pkg/components/user/model.go
+++ b/pkg/components/user/model.go
@@ -20,7 +20,7 @@ type (
CreateUser struct {
Username string
Name string
- Password string
+ Password []byte
IsAdmin bool
Path string
}
@@ -29,5 +29,6 @@ type (
List(ctx context.Context) ([]*User, error)
Create(ctx context.Context, createUser *CreateUser) error
Update(ctx context.Context, id uint, updateUser *UpdateUser) error
+ Any(ctx context.Context) (bool, error)
}
)