diff --git a/volkszaehler/model.go b/volkszaehler/model.go index 9efd842..39d6252 100644 --- a/volkszaehler/model.go +++ b/volkszaehler/model.go @@ -73,6 +73,13 @@ type Exception struct { Code int `json:"code"` } +// PostDataResponse is the middleware response to POST requests to /data.json +type PostDataResponse struct { + Version string `json:"version"` + Exception Exception `json:"exception"` + Rows int `json:"rows"` +} + // UnmarshalJSON converts volkszaehler tuple into Tuple struct func (t *Tuple) UnmarshalJSON(b []byte) error { var a []*json.RawMessage