fix: return always data property in response
This commit is contained in:
@@ -9,7 +9,7 @@ type APIResponse struct {
|
|||||||
// Indicates if the request was successful
|
// Indicates if the request was successful
|
||||||
Success bool `json:"success"`
|
Success bool `json:"success"`
|
||||||
// The response data
|
// The response data
|
||||||
Data any `json:"data,omitempty"`
|
Data any `json:"data"`
|
||||||
// List of errors if any occurred
|
// List of errors if any occurred
|
||||||
Errors []APIError `json:"errors,omitempty"`
|
Errors []APIError `json:"errors,omitempty"`
|
||||||
// Optional message
|
// Optional message
|
||||||
|
|||||||
Reference in New Issue
Block a user