|
1 | 1 | package snapshots |
2 | 2 |
|
3 | 3 | import ( |
| 4 | + "context" |
4 | 5 | "encoding/json" |
5 | 6 | "excalidraw-server/stores/sqlite" |
6 | 7 | "io" |
@@ -36,13 +37,13 @@ type ( |
36 | 37 | } |
37 | 38 |
|
38 | 39 | SnapshotStore interface { |
39 | | - CreateSnapshot(ctx interface{}, roomID, name, description, thumbnail, createdBy string, data []byte) (string, error) |
40 | | - ListSnapshots(ctx interface{}, roomID string) ([]sqlite.Snapshot, error) |
41 | | - GetSnapshot(ctx interface{}, id string) (*sqlite.Snapshot, error) |
42 | | - DeleteSnapshot(ctx interface{}, id string) error |
43 | | - UpdateSnapshotMetadata(ctx interface{}, id, name, description string) error |
44 | | - GetRoomSettings(ctx interface{}, roomID string) (*sqlite.RoomSettings, error) |
45 | | - UpdateRoomSettings(ctx interface{}, roomID string, maxSnapshots, autoSaveInterval int) error |
| 40 | + CreateSnapshot(ctx context.Context, roomID, name, description, thumbnail, createdBy string, data []byte) (string, error) |
| 41 | + ListSnapshots(ctx context.Context, roomID string) ([]sqlite.Snapshot, error) |
| 42 | + GetSnapshot(ctx context.Context, id string) (*sqlite.Snapshot, error) |
| 43 | + DeleteSnapshot(ctx context.Context, id string) error |
| 44 | + UpdateSnapshotMetadata(ctx context.Context, id, name, description string) error |
| 45 | + GetRoomSettings(ctx context.Context, roomID string) (*sqlite.RoomSettings, error) |
| 46 | + UpdateRoomSettings(ctx context.Context, roomID string, maxSnapshots, autoSaveInterval int) error |
46 | 47 | } |
47 | 48 | ) |
48 | 49 |
|
|
0 commit comments