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