Fixing storage interface functions

Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
This commit is contained in:
Ethan Wellenreiter 2025-05-06 00:25:48 -04:00
parent 9e580c50cc
commit 6bc2b58cdb

View File

@ -58,18 +58,18 @@ type Storage struct {
Images interface {
GetByID(context.Context, int64) (*Image, error)
Create(context.Context, *Image) error
Delete(context.Context, int64) (*Image, error)
ConfirmImage(context.Context, int64) error // may need to change this. Consider finishing https://www.youtube.com/watch?v=pmEmQcd9_KA
Delete(context.Context, int64) error
ActivateImage(context.Context, int64) error // may need to change this. Consider finishing https://www.youtube.com/watch?v=pmEmQcd9_KA
// Can have it so that the client get's a presigned url
// For creation, do a delayed check in 10 minutes to clean up the image from AWS or check
}
Groups interface {
GetByID(context.Context, int64)
GetUserGroups(context.Context, int64)
GetUsersInGroup(context.Context, int64)
Create(context.Context, *Group)
Delete(context.Context, int64)
GetByID(context.Context, int64) (*Group, error)
GetUserGroups(context.Context, int64) ([]*Group, error)
GetUsersInGroup(context.Context, int64) ([]*User, error)
Create(context.Context, *Group) error
Delete(context.Context, int64) error
}
}