add comments and new parameter id for client request order

This commit is contained in:
Adrian Zuercher
2025-05-04 20:55:58 +02:00
parent c7154f0779
commit e3487eb340
15 changed files with 119 additions and 79 deletions

View File

@@ -7,10 +7,12 @@ import (
"github.com/tecamino/tecamino-json_data/models"
)
// Returns a new json_data Request model
func NewRequest() *models.Request {
return &models.Request{}
}
// Parses the request body of a http or web socket request
func ParseRequest(body io.ReadCloser) (*models.Request, error) {
b, err := io.ReadAll(body)
if err != nil {