This commit is contained in:
Michael McGuinness
2025-01-06 14:40:43 +00:00
parent f230465523
commit f2e71ab533
13 changed files with 635 additions and 53 deletions
+2
View File
@@ -14,6 +14,8 @@ type ListFilters struct {
}
func (s *Service) List(ctx context.Context, filters ListFilters) (*[]Query, error) {
// TODO - use filters
dbQueries, err := s.db.Queries.ListQueries(ctx)
if err != nil {
return nil, err
+6 -1
View File
@@ -24,10 +24,15 @@ func (s *Service) Update(ctx context.Context, entity *queryprocessor.Update) err
return err
}
err = s.submitUpdate(ctx, entity)
if err != nil {
return err
}
return nil
}
func (s *Service) submitUpdate(ctx *context.Context, entity *queryprocessor.Update) error {
func (s *Service) submitUpdate(ctx context.Context, entity *queryprocessor.Update) error {
// TODO - generate new entity
// TODO - submit update - id, type, activeversion, requiredQueryId, Config
return nil