diff --git a/backend/internal/storage/groups.go b/backend/internal/storage/groups.go new file mode 100644 index 0000000..ae35226 --- /dev/null +++ b/backend/internal/storage/groups.go @@ -0,0 +1,9 @@ +package storage + +type Group struct { + ID int64 `json:"id"` + Name string `json:"name"` + Users []int64 `json:"users"` + Owner int64 `json:"owner"` + Moderators []int64 `json:"moderators"` +} diff --git a/backend/internal/storage/local_user.go b/backend/internal/storage/local_user.go deleted file mode 100644 index 82be054..0000000 --- a/backend/internal/storage/local_user.go +++ /dev/null @@ -1 +0,0 @@ -package storage diff --git a/backend/internal/storage/storage.go b/backend/internal/storage/storage.go index 147f928..4b3629d 100644 --- a/backend/internal/storage/storage.go +++ b/backend/internal/storage/storage.go @@ -9,13 +9,12 @@ type Storage struct { Receipts interface { GetByID(context.Context, int64) (*Receipt, error) } - Users interface { - AddUser(user string, password string) error - RemoveUser(user string, password string) error - UpdateUserPass(user string, oldPassword string, newPass string) error - } Images interface { GetByID(context.Context, int64) (*Image, error) + RemoveByID(context.Context, int64) (*Image, error) + } + Groups interface { + GetByID(context.Context, int64) } }