Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Add PostDataResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Aug 16, 2019
1 parent d4943f6 commit 3fb872e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions volkszaehler/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3fb872e

Please sign in to comment.