ripple-api/common/response.go

9 lines
228 B
Go

package common
// Response is the data that is always returned with an API request.
type Response struct {
Code int `json:"code"`
Message string `json:"message,omitempty"`
Data interface{} `json:"data"`
}