From 311ab744fe1bf278b18c25892497271988399e9a Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Tue, 4 Jul 2023 18:38:10 +0200 Subject: feat: Add user based files Now files follow user path configuration --- pkg/database/repository/user.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/database/repository') diff --git a/pkg/database/repository/user.go b/pkg/database/repository/user.go index f8bd719..3589007 100644 --- a/pkg/database/repository/user.go +++ b/pkg/database/repository/user.go @@ -27,6 +27,7 @@ type ( UserRepository interface { Get(ctx context.Context, id uint) (*User, error) + GetPathFromUserID(ctx context.Context, id uint) (string, error) List(ctx context.Context) ([]*User, error) Create(ctx context.Context, createUser *CreateUser) (uint, error) Update(ctx context.Context, id uint, updateUser *UpdateUser) error -- cgit v1.2.3