package
Version:
v0.0.0-...-0e55cf6
Opens a new window with list of versions in this module.
Published: Nov 30, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func (g *Gin) Response(httpCode, errCode int, msg string, data interface{})
Response setting gin.JSON
type Response struct {
Code int `json:"code" example:"200"`
Msg string `json:"msg,omitempty" example:"success"`
Data interface{} `json:"data,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.