diff --git a/common/response.go b/common/response.go index e5e4488..f96e5be 100644 --- a/common/response.go +++ b/common/response.go @@ -1,7 +1,8 @@ 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"` - Data interface{} `json:"data"` + Code int `json:"code"` + Message string `json:"message,omitempty"` + Data interface{} `json:"data"` }