14 lines
510 B
Go
14 lines
510 B
Go
package response
|
|
|
|
type BaseResponse struct {
|
|
Success bool `json:"success"`
|
|
Code string `json:"response_code,omitempty"`
|
|
Status int `json:"-"`
|
|
Message string `json:"message,omitempty"`
|
|
ErrorMessage string `json:"error_message,omitempty"`
|
|
ErrorDetail interface{} `json:"error_detail,omitempty"`
|
|
Data interface{} `json:"data,omitempty"`
|
|
PagingMeta *PagingMeta `json:"meta,omitempty"`
|
|
Response string `json:"response,omitempty"`
|
|
}
|