v1
This commit is contained in:
@@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user