Do more things through main web stuff instead of API

This commit is contained in:
Caleb Gardner
2024-11-11 08:00:53 -06:00
parent f04c00c015
commit e183eefee8
6 changed files with 113 additions and 73 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ type IDStruct interface {
}
type Table[T IDStruct] interface {
Get(ctx context.Context, ID string) (data *T, err error)
Get(ctx context.Context, ID string) (data T, err error)
Find(ctx context.Context, values map[string]any) ([]T, error)
Insert(ctx context.Context, data T) error
Remove(ctx context.Context, ID string) error