Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIHandler ¶
type APIHandler func(ctx *gin.Context) *JSONResponse
APIHandler gin router回调函数 handler函数定义格式
type JSONResponse ¶
type JSONResponse struct { Code int `json:"errcode"` Msg string `json:"errmsg,omitempty"` Data interface{} `json:"data,omitempty"` }
JSONResponse 返回结构
Click to show internal directories.
Click to hide internal directories.