controllercomplete

This commit is contained in:
Michael McGuinness
2025-01-02 18:56:26 +00:00
parent 872967db84
commit a6b5b1aa6e
2 changed files with 90 additions and 2 deletions
+32
View File
@@ -33,6 +33,19 @@ type ListFilters struct {
Types []Type
}
type Create struct {
Type Type
RequiredQueryIDs []uuid.UUID
}
type Update struct {
ID uuid.UUID
}
type Test struct {
ID uuid.UUID
}
type Processor interface {
Process(ctx context.Context, query QueryRow, values *[]result.Value) (string, error)
}
@@ -52,3 +65,22 @@ func (s *Service) Get(ctx context.Context, id uuid.UUID) (*Query, error) {
func (s *Service) List(ctx context.Context, filters ListFilters) (*[]Query, error) {
return nil, nil
}
func (s *Service) Create(ctx context.Context, entity Create) (uuid.UUID, error) {
return uuid.Nil, nil
}
func (s *Service) Update(ctx context.Context, entity Update) error {
return nil
}
func (s *Service) Remove(ctx context.Context, id uuid.UUID) error {
return nil
}
func (s *Service) Test(ctx context.Context, filters Test) (string, error) {
// Sync doc
// Run test
return "", nil
}