Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { }
Controller struct
func (*Controller) Ping ¶
func (c *Controller) Ping(ctx *gin.Context)
Ping return pong @Summary ping common @Description do ping @Tags common @Accept json @Produce json @Success 200 {string} string "pong" @Failure 400 {string} string "ok" @Failure 404 {string} string "ok" @Failure 500 {string} string "ok" @Router /ping [get]
type ErrorResponse ¶
type ErrorResponse struct { Message string `json:"message" groups:"api" example:"status bad request"` Code int `json:"code" groups:"api" example:"400"` MoreInfo string `json:"more_info" groups:"api" example:"http://"` }
ErrorResponse used to descrive api error response
Click to show internal directories.
Click to hide internal directories.