13 lines
456 B
Go
13 lines
456 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"`
|
||
|
|
}
|