Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(router *gin.RouterGroup) error
Types ¶
type Response ¶
type Response struct {
Code int `json:"code"`
Message string `json:"error"`
Data interface{} `json:"data"`
}
func NewBadRequest ¶
func NewResponse ¶
func NewResponse(data interface{}) *Response
Click to show internal directories.
Click to hide internal directories.