16 lines
404 B
Go
16 lines
404 B
Go
package http_util
|
|
|
|
type JSONResult struct {
|
|
Code int `json:"code" example:"404"`
|
|
Message string `json:"message" example:"Not Found"`
|
|
Data interface{} `json:"data"`
|
|
Meta interface{} `json:"meta"`
|
|
}
|
|
|
|
type JSONResultMeta struct {
|
|
TotalCount int `json:"total_count"`
|
|
PageCount int `json:"page_count"`
|
|
CurrentPage int `json:"current_page"`
|
|
PerPage int `json:"per_page"`
|
|
}
|