MCPcopy Create free account
hub / github.com/260721735/ginRouteAutoRegister / GetTest

Method GetTest

demo/controller/hello_controller.go:14–20  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

12 return &HelloController{}
13}
14func (controller *HelloController) GetTest(c *gin.Context) {
15 c.JSON(http.StatusOK, gin.H{
16 "code": 0,
17 "msg": "GetTest",
18 "data": nil,
19 })
20}
21func (controller *HelloController) GetTestBAD1(c *gin.Context, a string) {
22 c.JSON(http.StatusOK, gin.H{
23 "code": 0,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected