This commit is contained in:
2025-08-30 10:30:53 +03:00
parent 2e7ab5e382
commit 3654383ad2
9 changed files with 34 additions and 40 deletions

View File

@@ -61,10 +61,8 @@ type Repo[T any] interface {
Read(ctx context.Context, id string) (*T, error)
// Update updates object with id.
Update(ctx context.Context, id string, v *T) error
// Delete performs soft-delete (actually marks object as unavailable).
// Delete deletes object with id.
Delete(ctx context.Context, id string) error
// Purge actually deletes database record with id.
Purge(ctx context.Context, id string) error
}
```