omitempty for message in response
This commit is contained in:
parent
3ddab1de15
commit
df793351c0
|
@ -1,7 +1,8 @@
|
||||||
package common
|
package common
|
||||||
|
|
||||||
|
// Response is the data that is always returned with an API request.
|
||||||
type Response struct {
|
type Response struct {
|
||||||
Code int `json:"code"`
|
Code int `json:"code"`
|
||||||
Message string `json:"message"`
|
Message string `json:"message,omitempty"`
|
||||||
Data interface{} `json:"data"`
|
Data interface{} `json:"data"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user