Resolve issue with file visibility not updating after caching user files

This commit is contained in:
2024-09-23 10:44:25 +07:00
parent 9452d48bbd
commit 1feeafe7de
7 changed files with 50 additions and 62 deletions

View File

@ -94,7 +94,8 @@ type Services interface {
GetUser(ctx context.Context, email string) (*models.User, error)
DeleteUser(ctx context.Context, email string) error
GetFile(ctx context.Context, id string) (*models.File, error)
GetUserFile(ctx context.Context, name, ownerID string) (*FileData, error)
DeleteFileCache(ctx context.Context, id string) error
GetUserFile(ctx context.Context, fileID uuid.UUID) (*FileData, error)
GetUserStorageUsage(ctx context.Context, ownerID string) (uint64, error)
GetFileChunks(ctx context.Context, fileID uuid.UUID, ownerID uuid.UUID, totalChunk uint64) (*FileState, error)
UpdateFileChunk(ctx context.Context, fileID uuid.UUID, ownerID uuid.UUID, chunk string, totalChunk uint64) error