14 lines
510 B
Go
Raw Normal View History

2023-10-08 15:59:42 +07:00
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"`
2024-10-27 19:48:10 +07:00
Response string `json:"response,omitempty"`
2023-10-08 15:59:42 +07:00
}