diff --git a/internal/usecases/convertquery/aql.go b/internal/usecases/convertquery/aql.go index 8adcb06546136e8100861ef6cc69067c939589ee..02c7811c4ca7aa8d340c2c5ca5f17c8dcea9e97e 100644 --- a/internal/usecases/convertquery/aql.go +++ b/internal/usecases/convertquery/aql.go @@ -5,7 +5,9 @@ import ( "fmt" ) -/* ConvertQuery converts a json string to an AQL query +/* +ConvertQuery converts a json string to an AQL query + Parameters: jsonMsg is the JSON file directly outputted by the drag and drop query builder in the frontend Return: a string containing the corresponding AQL query and an error */ @@ -21,7 +23,7 @@ func (s *Service) ConvertQuery(jsonMsg *[]byte) (*string, error) { return result, nil } -/*convertJSONtoStruct reads a JSON file and sorts the data into the appropriate structs +/* convertJSONtoStruct reads a JSON file and sorts the data into the appropriate structs Parameters: jsonMsg is the JSON file directly outputted by the drag and drop query builder in the frontend Return: parsedJSON is a struct with the same structure and holding the same data as jsonMsg