ripple-api/common/response.go

9 lines
228 B
Go
Raw Normal View History

2016-04-03 17:59:27 +00:00
package common
2016-04-03 18:31:51 +00:00
// Response is the data that is always returned with an API request.
2016-04-03 17:59:27 +00:00
type Response struct {
2016-04-03 18:31:51 +00:00
Code int `json:"code"`
Message string `json:"message,omitempty"`
Data interface{} `json:"data"`
2016-04-03 17:59:27 +00:00
}