aboutsummaryrefslogtreecommitdiff
path: root/pkg/components/user
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/components/user')
-rw-r--r--pkg/components/user/model.go34
1 files changed, 0 insertions, 34 deletions
diff --git a/pkg/components/user/model.go b/pkg/components/user/model.go
deleted file mode 100644
index 0ff6d0a..0000000
--- a/pkg/components/user/model.go
+++ /dev/null
@@ -1,34 +0,0 @@
-package user
-
-import "context"
-
-type (
- User struct {
- ID uint
- Username string
- Name string
- IsAdmin bool
- Path string
- }
-
- UpdateUser struct {
- Username string
- Name string
- Password *string
- }
-
- CreateUser struct {
- Username string
- Name string
- Password []byte
- IsAdmin bool
- Path string
- }
-
- Repository interface {
- List(ctx context.Context) ([]*User, error)
- Create(ctx context.Context, createUser *CreateUser) (uint, error)
- Update(ctx context.Context, id uint, updateUser *UpdateUser) error
- Any(ctx context.Context) (bool, error)
- }
-)