MCPcopy
hub / github.com/eddycjy/go-gin-example / Response

Struct Response

pkg/app/response.go:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13type Response struct {
14 Code int `json:"code"`
15 Msg string `json:"msg"`
16 Data interface{} `json:"data"`
17}
18
19// Response setting gin.JSON
20func (g *Gin) Response(httpCode, errCode int, data interface{}) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected