package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Dec 16, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
MetaKey = "meta"
RequestIDKey = "request_id"
)
APIError http request error
func APISuccess(ctx *gin.Context, response interface{})
APISuccess http request success
GetRequestID get current request id
type Meta struct {
Code int64 `json:"code"`
Error string `json:"error"`
RequestID string `json:"request_id"`
RequestURI string `json:"request_uri"`
}
Meta struct
type Response struct {
Meta Meta `json:"meta"`
Body interface{} `json:"response"`
}
Response struct
Source Files
¶
Click to show internal directories.
Click to hide internal directories.